[WAIT]
[1/3] from: rebol::ccsducto::com::ar at: 6-Dec-2004 18:19
Hi, everybody
I want to know wich is the difference between:
some-port/awake: :some-func
append system/ports/wait-list some-port
and
forever [
request: wait [some-port]
some-func request
]
or if one of them is incorrect
thanks to all
Cesar
[2/3] from: volker::nitsch::gmail::com at: 7-Dec-2004 7:59
Both methods are equal here.
But 'awake is handled on every wait, your own loop only on its own wait.
'view does its own wait, and then 'awake is handled, your own wait
not. (its overlayd with 'views wait) (you can use 'view/new of
course).
-Volker
On Mon, 6 Dec 2004 18:19:26 -0300, Cesar Chavez <[rebol--ccsducto--com--ar]> wrote:
[3/3] from: rebolforces::gmail::com at: 8-Dec-2004 9:04
Slightly related...
There is a function called Dispatch that you might to use or at look
at its source. Dispatch wait on a block of ports and as events happen,
dispatches your port handler
Cheers,
Allen K