lock<T> method

  1. @override
Future<T> lock<T>(
  1. Future<T> callback(), {
  2. Duration? timeout,
})
override

timeout is a timeout for acquiring the lock, not for the callback

Implementation

@override
Future<T> lock<T>(Future<T> Function() callback, {Duration? timeout}) {
  throw UnimplementedError();
}