[Enh] DispatchQueues

Rob Withers rwithers12 at mediaone.net
Mon Aug 27 06:58:57 UTC 2001


Well I forgot to include the dependencies for some of those other
changesets.  I am looking forward to modules!

This depends on the Events, Tasks, and Futures.

A DispatchQueue is a pumped queue which evaluates the items that it removes
from the queue.  There is protocol in place for async sends, async trigger
events, and you can control whether the queue is dispatched in the
foreground or background and set the drain size.  The asyncSend:to: protocol
forces you to specify the receiver.  You can dynamically change the dispatch
state to one of (suspend, foreground, background, close).  Only close will
flush, thus causing you to lose the remaining items.

A FutureDispatchQueue provides support for asyncSend:to:future:, and the
result of the evaluation will resolve the future.

- Rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Collection-DispatchQueues.1.cs
Type: application/octet-stream
Size: 16846 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010827/ce11b3d4/Collection-DispatchQueues.1.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Tests-DispatchQueues.1.cs
Type: application/octet-stream
Size: 2718 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20010827/ce11b3d4/Tests-DispatchQueues.1.obj


More information about the Squeak-dev mailing list