[racket] choosing channels or async-channels
I always wrestle with whether to use channels or asynchronous channels; specifically, you can model non-blocking 'put' with channels by spawning a thread that calls 'channel-put'.
Moreover, I have more warm fuzzies associated with regular channels, because they're part of the CML model.
If I'm reading the docs correctly, the principal advantage of the asynchronous buffers is actually their buffered nature, which makes it more likely that the messages will be received in the "right" order. That, and possibly the fact that the buffer takes less memory than a stalled thread.
Am I reasoning correctly?
John
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/users/archive/attachments/20111117/276f8e4e/attachment.p7s>