trigger
A trigger for a message on this mailbox that matches predicate, for use in a wait for the first of several things (waitForFirst). The trigger fires when a matching message is delivered while the wait is open, or at once if one is already waiting in the mailbox; its value is the message, which is taken from the mailbox. While the wait is open, its waiter takes its place among this mailbox's waiting receivers in the order it was registered, as a receiveMessage waiter does.
A trigger holds no state of any wait, so it can be kept and used in any number of waits.
Parameters
predicate
selects the messages the trigger accepts; by default, any message