withExclusiveLock<T> method

  1. @override
Future<T> withExclusiveLock<T>(
  1. Future<T> action()
)
inherited

Acquires an exclusive (writer/compactor) lock, runs action, and releases the lock.

Implementation

@override
Future<T> withExclusiveLock<T>(Future<T> Function() action) =>
    _runWithMode(.exclusive, .blockingExclusive, .exclusive, action);