std.concurrency: The fate of unmatched messages

E.S. Quinn via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 10 18:52:23 PDT 2015


On Friday, 10 July 2015 at 23:39:30 UTC, ketmar wrote:
> this way your `receive` will get all messages. simply do 
> nothing in `Variant` handler to drop messages you don't want to 
> process.
>
>
> [1] http://dlang.org/phobos/std_concurrency.html#.receive

The thing is, I want to do receive() in two separate places, and 
I want each receive() call to leave the other's messages alone, 
not drop them.


More information about the Digitalmars-d-learn mailing list