Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: waiting on ports

From: maximo:meteorstudios at: 25-Aug-2003 14:53

There is a function called do-events which launches an empty wait loop (since view creates an event loop handler, it starts waiting for events, I guess its a port too). do-events: func [ "Process all View events." ][ wait [] ] you can see that in do-events, wait has no timeout... I am not sure how it ties in with message port handling... you might want to open your window with view/only (which does not start event handling) and then start your own wait with ports and timeout selected, like we were all talking about... then any view events will react until the timeout appears and the wait returns... ITHINK .... at which point you could relauch only a wait [] (to continue with view events, or start other ports etc)... or pop up a message or whatever... I'm not sure why you need the timeout... I cannot test it, but maybe this does not work... in any case, I'll have opened a door which you or someone else might want to explore... HTH -max ----------- meteor Studios, T.D. ----------- Never Argue with an idiot. They will bring you down to their level and beat you with experience