lazyPutAsync<S> static method

Future<S> Function() lazyPutAsync<S>(
  1. Future<S> builder(), {
  2. String? tag,
  3. bool permanent = false,
  4. bool isFactory = false,
})

Registers an asynchronous lazy dependency builder.

Retrieve the instance using findAsync. If permanent is true, registration survives a non-forced reset. Scope dispose always force-clears permanents.

Implementation

static Future<S> Function() lazyPutAsync<S>(Future<S> Function() builder,
    {String? tag, bool permanent = false, bool isFactory = false}) {
  return Ls.lazyPutAsync<S>(builder,
      tag: tag, permanent: permanent, isFactory: isFactory);
}