Broadcast to all waiting tasks, if any.
Signal one waiting task, if any.
Wait until the condition is signaled.
The lockable (mutex) to use for synchronization.
Optionalsignal: AbortSignal | nullAn optional AbortSignal to cancel the wait operation.
A promise that resolves when the condition is signaled.
A condition variable primitive.
Allows tasks to wait until they are signaled to continue.
Example