[REBOL] Re: waiting on ports
From: petr:krenzelok:trz:cz at: 25-Aug-2003 17:16
Matt MacDonald wrote:
>I have a series of ports, c. I want to wait on all of them, but I also want
>to specify the timeout parameter, 5 seconds. How can I do this? ready:
>wait [c 5] does not work.
that is a timeout parameter for your wait loop, not entire port. Your
wait function above returns, if:
- event occurs on port 'c, being it timeout (set by port/timeout: 5),
incoming data, port closure by remote site ...
- if nothing happens, those 5 sec in your block causes escape ... so you
are able to process something else in your main loop ...