Inter-process / inter-handle concurrency locking abstraction.
Note that withSharedLock and withExclusiveLock may be called sequentially inside an already serialized intra-isolate critical section, so custom implementations must guard cross-process access safely.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → Future< void> - Releases any lock descriptors or handles maintained by this strategy.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withExclusiveLock<
T> (Future< T> action()) → Future<T> -
Acquires an exclusive (writer/compactor) lock, runs
action, and releases the lock. -
Acquires a shared (reader) lock, runs
action, and releases the lock.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited