SafeAtomicLock class
A hybrid atomic lock — safe, fast, and error-proof.
Constructors
Properties
- activeLocks → int
-
Number of currently active locks.
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
-
clearAll(
) → void - Manually clear all locks.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run<
T> (AsyncTask< T> task, {LockId lockId = LockId.one}) → Future<T> -
Runs
taskatomically for the givenlockId. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited