withSharedLock<T> method

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

Acquires a shared (reader) lock, runs action, and releases the lock.

Implementation

@override
Future<T> withSharedLock<T>(Future<T> Function() action) =>
    _runWithMode(.shared, .blockingShared, .shared, action);