[REBOL] Re: Understanding tcp
From: maarten:vrijheid at: 16-Aug-2003 7:51
> For example, I had never seen 'wait used like this before:
> port: wait ports
>
You can wait on a block of ports and get the port that has an event
back:
Wait [ ... ]
Or with a timeout:
Wait [ ... 0:0:1]
Which returns none (tomeout) or the port
But the best is:
Wait/all [ ... timeout ]
This will return none with a timeout and a block of all ports that have
an event. This is a bit more efficient than entering the event loop
again and again.
--Maarten