Notify, wake all up.
Notify, wake only one up.
Wait until notified.
Wait until predicator returns true.
This method is equivalent to:
while (!await predicator())
await this.wait();
A predicator function determines completion.
Wait for timeout or until notified.
The maximum miliseconds for waiting.
Whether awaken by notification or timeout.
Wait until timeout or predicator returns true.
This method is equivalent to:
let at: Date = new Date(Date.now() + ms);
while (!await predicator())
{
if (!await this.wait_until(at))
return await predicator();
}
return true;
The maximum miliseconds for waiting.
A predicator function determines the completion.
Returned value of the predicator.
Wait until notified or time expiration.
The maximum time point to wait.
Whether awaken by notification or time expiration.
Wait until time expiration or predicator returns true.
This method is equivalent to:
while (!await predicator())
{
if (!await this.wait_until(at))
return await predicator();
}
return true;
The maximum time point to wait.
A predicator function determines the completion.
Returned value of the predicator.
Generated using TypeDoc
Remote ConditionVariable.
The
RemoteConditionVariable
class blocks critical sections until be notified.Jeongho Nam - https://github.com/samchon