BasicLock class

Basic (non-reentrant) lock

Implemented types

Constructors

BasicLock()

Properties

hashCode int
The hash code for this object.
no setterinherited
inLock bool
for reentrant, test whether we are currently in the synchronized section. for non reentrant, it returns the locked status.
no setteroverride
last Future?
The last running block
getter/setter pair
locked bool
returns true if the lock is currently locked.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
synchronized<T>(FutureOr<T> func(), {Duration? timeout}) Future<T>
Executes computation when lock is available.
override
toString() String
A string representation of this object.
override

Operators

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