Condition.wait

Suspends the calling thread until a notification occurs or until the supplied time period has elapsed. The supplied period may be up to a maximum of (uint.max - 1) milliseconds.

  1. void wait()
  2. bool wait(double period)
    class Condition
    bool
    wait
    (
    double period
    )

Parameters

period double

The time to wait, in seconds (fractional values are accepted).

In: period must be less than (uint.max - 1) milliseconds.

Return Value

Type: bool

true if notified before the timeout and false if not.

Throws

SyncException on error.

Meta