dmd-concurrency

Shammah Chancellor anonymous at coward.com
Fri Nov 22 14:35:47 PST 2013


On 2013-11-22 22:34:19 +0000, Shammah Chancellor said:

> How does one receive from multiple channels out-of-order?   I would 
> rather this sent it to the subscribed Tid via send, rather than having 
> an additional queue.   It could possible send a ChannelMessage which 
> has a reference to the sending channel and the message.   I understand 
> this is a different model than what Go and whatnot use, but I think 
> it's more pratical in some circumstances.   Maybe both ways would be 
> good?  I personally use this method in my vibe-d server.

Edit, I see that you have receiveAll.. I didn't notice that.  However, 
that still doesn't satisfy the problem when you want to do receive() 
for your Tid, and receiveAll() from your channels.



More information about the Digitalmars-d mailing list