ComposedLock class

A class that manages multiple mutex locks in a structured manner. It provides mechanisms for acquiring locks sequentially or atomically and ensures proper release of acquired locks.

Constructors

ComposedLock(List<IMutex> _mutexes)
Creates a ComposedLock with a list of mutexes.

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

atomicLock(Duration timeout) Future<bool>
Attempts to acquire all locks atomically within a specified timeout.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
releaseAll() → void
Releases all acquired locks in reverse order.
sequentialLock() Future<void>
Acquires all locks sequentially, one after another.
toString() String
A string representation of this object.
inherited

Operators

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