batchAsync<R> static method

Future<R> batchAsync<R>(
  1. Future<R> callback()
)

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);
}