pub fn wait(cond: *Condition, io: Io, mutex: *Mutex) Cancelable!void CanceledCaller has requested the async operation to stop.
1796
1797
1798
1799
1800
1801 pub fn wait(cond: *Condition, io: Io, mutex: *Mutex) Cancelable!void {
waitTimeout(cond, io, mutex, .none) catch |err| switch (err) {
error.Timeout => unreachable,
error.Canceled => |e| return e,
};
}
Blocks until the condition is signaled or canceled.
See also:
waitUncancelablewaitTimeout