std.concurrency: The fate of unmatched messages
E.S. Quinn via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri Jul 10 23:56:42 PDT 2015
On Saturday, 11 July 2015 at 02:15:02 UTC, ketmar wrote:
>
> so simply don't receive the messages you don't need right now.
> as i said, `receive()` doesn't look to top message only, it
> scans the whole mailbox, trying to find a message that matches.
> you can use `receiveTimeout()` to do nothing if there are no
> suitable messages. you can also adjust mailbox size and mode.
Okay, so it doesn't purge unrecognized messages, then! That's
what I needed to know!
More information about the Digitalmars-d-learn
mailing list