trigger
A trigger for this signal, for use in a wait for the first of several things (waitForFirst). The trigger fires when the waiting entity is signalled while the wait is open; it never fires at once. While the wait is open, the entity waits in this signal's queue as an entity in waitFor(signal) does, so it is counted, ranked and signalled in the same way. A wait may include at most one signal trigger, because an entity can wait in only one queue.
A trigger holds no state of any wait, so it can be kept and used in any number of waits.
A waitPriority becomes the entity's priority, as it does after waitFor(signal, waitPriority), and stays so after the wait. The requests the wait's seize and items triggers place are ranked by the entity's priority when the wait began, whatever the order of the triggers.
Parameters
the entity's priority in this signal's queue; null (the default) means the entity's own priority when the wait starts
whether the time the entity waits in this signal's queue is recorded, whether the trigger wins or loses