[racket] sync and input ports
I'm not sure I understand your question.
But you need to wrap your input events with handle-evt or wrap-evt so
you can close over state that helps you distinguish the events when sync
returns.
Kevin
On 11/10/2012 10:55 AM, Laurent wrote:
> Hi,
>
> Can a single 'sync' accept several input-port events?
> From my little tests, it seems not, but this does not seem to match
> what the docs say.
> To make it work and avoid one of the clients to be blocked half of the
> time, I needed to run several sync's in different thread. But then I
> don't see the interest of using 'sync' over a normal 'read'.
>
> Thanks,
> Laurent
>
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20121110/08acad26/attachment.html>