Lock class

Simple lock implementation to prevent concurrent access to asynchronous code.

Based on tekartik's basic_lock.dart

Constructors

Lock()

Properties

hashCode int
The hash code for this object.
no setterinherited
last Future?
getter/setter pair
locked bool
no setter
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>(Future<T> func()) Future<T>
toString() String
A string representation of this object.
inherited

Operators

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