CiLock class

An advisory, directory-based lock.

Constructors

CiLock(String path)

Properties

hashCode → int
The hash code for this object.
no setterinherited
held → bool
Whether this object currently holds the lock.
no setter
path → String
The lock directory.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

acquire({Duration poll = const Duration(seconds: 5), Duration reportEvery = const Duration(minutes: 1), void onWait(Duration waited)?}) → Future<void>
Takes the lock, waiting while somebody else holds it.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
release() → void
Releases the lock if held. Safe to call more than once, and from a signal handler.
toString() → String
A string representation of this object.
inherited

Operators

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