batchAsync<R> static method
Executes an asynchronous callback in a batch.
The batching context is maintained across await points.
Returns the value returned by callback.
Throws any exception thrown by callback.
Implementation
static Future<R> batchAsync<R>(Future<R> Function() callback) {
return Lx.batchAsync(callback);
}