Initializes a new EventWaitHandle specifying whether the wait handle is initially signaled and whether it should reset automatically or manually.
true
to set the initial state to signaled; false
to set it to non-signaled.
An EventResetMode value that determines whether the event resets automatically or manually.
Notifies a given number of awaiting coroutines that are waiting on the current wait handle.
The number of awaiting coroutines to notify.
The number of awaiting coroutines that were notified.
Sets the state of the event to nonsignaled, causing coroutines to enter an awaiting state.
true
if the operation succeeded; otherwise false
.
Sets the state of the event to signaled, allowing one or more awaiting coroutines to proceed.
true
if the operation succeeded; otherwise false
.
Waits for the current {@link @aitHandle} to receive a signal.
An optional AbortSignal
that will abort the current wait operation.
A Promise
that resolves when the current WaitHandle receives a signal.
Generated using TypeDoc
A thread synchronization event.