AsyncLock<T> constructor

AsyncLock<T>(
  1. Future<T> function(), {
  2. bool retainFutureErrors = false,
})

Creates a new AsyncLock.

Implementation

AsyncLock(this.function, {this.retainFutureErrors = false});