On Wed, Oct 18, 2000 at 10:26:22AM -0500, [EMAIL PROTECTED] 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
[EMAIL PROTECTED]