Condition.wait

void wait()

Wait until notified.

Throws

SyncError on error.
void wait() shared

ditto

void wait(this Q)( bool _unused_ ) if (is(Q == Condition) || is(Q == shared Condition))

ditto

bool wait( Duration val )

Suspends the calling thread until a notification occurs or until the supplied time period has elapsed.

Parameters

valThe time to wait. In: val must be non-negative.

Throws

SyncError on error.

Returns

true if notified before the timeout and false if not.
bool wait( Duration val ) shared

ditto

bool wait(this Q)( Duration val, bool _unused_ ) if (is(Q == Condition) || is(Q == shared Condition))

ditto