wait_event_any
wait_event_any(
queues,condition,proc?,timeout?):Promise<boolean>
Defined in: src/wait.ts:60
Sleep until condition holds on any of several queues, i.e. what do_poll does.
Parameters
Section titled “Parameters”queues
Section titled “queues”readonly WaitQueue[]
condition
Section titled “condition”() => boolean
timeout?
Section titled “timeout?”number = -1
how long to wait in milliseconds, 0 to only look, or a negative number to wait forever
Returns
Section titled “Returns”Promise<boolean>
whether the condition holds, i.e. false if the time ran out first
Throws
Section titled “Throws”EINTR when a signal arrives first