async<T> static method

LevitAsyncStore<T> async<T>(
  1. Future<T> builder(
    1. LevitRef ref
    )
)

Creates an asynchronous store definition from builder.

Returns a LevitAsyncStore that resolves to T instead of Future<T>.

Implementation

static LevitAsyncStore<T> async<T>(Future<T> Function(LevitRef ref) builder) {
  return LevitAsyncStore<T>(builder);
}