withSharedLock<T> method
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);