TekartikLockExtension extension
Extension on Lock to provide synchronous execution when possible
- on
Methods
-
synchronizedSync<
T> (T computation(), {Duration? timeout}) → FutureOr< T> -
Available on Lock, provided by the TekartikLockExtension extension
Executes a synchronouscomputation
. If the lock is not locked, it will run the computation immediately and return its value synchronously.