flush MessageBox

John Colvin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Aug 20 08:57:44 PDT 2015


On Thursday, 20 August 2015 at 15:25:57 UTC, Chris wrote:
> Is there a way to flush a thread's message box other than 
> aborting the thread? MailBox is private:
>
> https://github.com/D-Programming-Language/phobos/blob/master/std/concurrency.d#L1778

flush from inside the thread? You could call receiveTimeout with 
a 0 timer in a loop until it returns false.


More information about the Digitalmars-d-learn mailing list