packages/synchronized-3.0.1/src/extension_impl library
Properties
-
cacheLocks
→ Map<
Object, BasicLock> -
All basic lock
final
Functions
-
cleanUpLock(
Object monitor) → void - Remove object for global cache
-
objectMakeLock(
Object monitor) → BasicLock - Returns the associate basic lock
-
objectSynchronized<
T> (Object monitor, FutureOr< T> computation(), {Duration? timeout}) → Future<T> -
Execute
computation
when lock is available. Only one block can run while the lock is retained. Any object can be a lock, locking is based on identity.