Vocabulary
concurrency.mailboxes

Inputs
mailboxa mailbox
preda quotation with stack effect ( obj -- ? )


Outputs
objan object


Word description
Get the first item in the mailbox which satisfies the predicate. When the predicate returns true that item will be returned. If nothing in the mailbox satisfies the predicate then the thread will block until something does.

Definition