[REBOL] polling ports with 'wait' Re:
From: jelinem1:nationwide at: 11-Aug-2000 12:40
I noticed this also almost instantly after installing 2.3. I found no
documentation describing this change. 'wait still works if you give it a
non-zero time, so i ended up (after failed attempts at making the "no wait"
scenario work) using the smallest time frame REBOL would allow, 0:0:0.001.
Since I'm not constantly looping millions of times in a batch process this
does not significantly slow my program down. Thus, try:
wait [0:0:0.001 conn]
- Michael Jelinek
[Alfred_Pang--inetco--com] on 08/11/2000 12:20:08 PM
From: [Alfred_Pang--inetco--com] on 08/11/2000 12:20 PM
Please respond to [list--rebol--com]
To: [list--rebol--com]
cc:
Subject: [REBOL] polling ports with 'wait'
Hello,
In version 2.2 core, I used to have something like this
to instantly poll a TCP connection if it has any data:
wait [0 conn]
If there is no data, then none was returned; otherwise
there is data on the connection.
I haven't been able to figure out the right thing to do
in 2.3 core; 'wait [0 conn]' always returned none even
if there is data available.
Any ideas on how to do it in 2.3?
-Alfred