ConditionVariable class sealed

A condition variable synchronization primitive.

Condition variable can be used to synchronously wait for a condition to occur.

ConditionVariable object can not be directly sent to other isolates via a SendPort, but it can be converted to a Sendable<ConditionVariable> object via asSendable getter.

ConditionVariable objects are owned by an isolate which created them.

Implemented types

Constructors

ConditionVariable()
factory

Properties

asSendable Sendable<ConditionVariable>
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
Wake up at least one thread waiting on this condition variable.
toString() String
A string representation of this object.
inherited
wait(Mutex mutex, {Duration? timeout}) → void
Block and wait until another thread calls notify.

Operators

operator ==(Object other) bool
The equality operator.
inherited