Skip to content

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.

readonly WaitQueue[]

() => boolean

Process

number = -1

how long to wait in milliseconds, 0 to only look, or a negative number to wait forever

Promise<boolean>

whether the condition holds, i.e. false if the time ran out first

EINTR when a signal arrives first