https://issues.dlang.org/show_bug.cgi?id=14953

Dmitry Olshansky <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #5 from Dmitry Olshansky <[email protected]> ---
> Related to this is the possibility to get the size of the message box, e.g. 
> you would only want to flush a message box, if its size is > 0. I haven't 
> found a way to get the size of the message box, unless something has escaped 
> me.

In an async world with fire and forget message passing all of the above is
marred with race conditions. You might check that size == 0 the next instant
the message comes in. 

I think the only legitimate use case would be dropUntil!(SomeMessageTypesHere)
as it at least has a point of serialization - marker message in a stream of
messages.

--

Reply via email to