On 11/18/2020 9:43 AM, Javier Vivanco wrote:

I have a question about a read-line-evt 's behaviour.
Is this normal this ?
> (sync (read-line-evt (current-input-port))
1234
"1111"

I want to use a timeout in read-line via sync/timeout

but it always gives me the first character


You are seeing the return value from 'sync' rather than the event data.

Contrast with:

  (let [ (e (read-line-evt (current-input-port) )) ]
    (sync e)
    e )

Hope this helps,
George

--
You received this message because you are subscribed to the Google Groups "Racket 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/ea1998da-1d7e-4d94-b1d8-2572cb37be11%40comcast.net.

Reply via email to