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

[REBOL] Dispatch Re:

From: holger:rebol at: 18-Oct-2000 9:10

On Wed, Oct 18, 2000 at 10:26:22AM -0500, [ptretter--charter--net] wrote:
> It would appear by the description for dispatch that it replaces the wait > command. Also the souce for dispatch includes the wait command which further > makes me suspect that is the case - source:
Dispatch is a convenience function that you can use instead of wait. It gives you an easier way to construct a typical application event loop. Such an event loop usually loops on waiting for a port, checks which port you got back, and then calls a function depending on which port was returned. Dispatch does all of that within a single function, making your code a little simpler. Dispatch is not quite as flexible as wait though, and we do not intend to replace wait with dispatch on the long run. You should use whatever function you feel more comfortable with. -- Holger Kruse [holger--rebol--com]