Mutex class
Mutual exclusion.
Usage:
m = new Mutex();
await m.acquire();
try {
// critical section
}
finally {
m.release();
}
Constructors
- Mutex()
Properties
Methods
-
acquire(
) → Future - Acquire a lock
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
) → void - Release a lock.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited