Vocabulary
concurrency.mailboxes

Inputs
mailboxa mailbox
timeouta duration or f


Outputs
seqa sequence


Word description
Blocks the thread for timeout if the mailbox is empty, then removes all objects in the mailbox and returns a sequence containing the objects.

Definition