Mutex class abstract

Constructors

Mutex({String? identifier})
factory

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>
Release resources used by the Mutex.
lock<T>(Future<T> callback(), {Duration? timeout}) → Future<T>
timeout is a timeout for acquiring the lock, not for the callback
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open() → Mutex
Use open to get a AbstractMutex instance. This is mainly used for shared mutexes
toString() → String
A string representation of this object.
inherited

Operators

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