NamedLock class
A NamedLock can be used to control access to a resource across processes and isolates.
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
withLock(
FutureOr< void> action(), {String? waiting}) → FutureOr<void> -
creates a lock file and then calls
action
onceaction
returns the lock is released. Ifwaiting
is passed it will be used to write a log message to the console.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited