TranslationLoader.asynchronous constructor

TranslationLoader.asynchronous(
  1. TranslationLoader loader
)

Creates a non-blocking TranslationLoader instance that that will load the translations asynchronously and apply them back to the Translator when complete.

This is a convenience factory constructor and is ultimately a synonym for constructing an AsyncTranslationLoader directly.

Implementation

factory TranslationLoader.asynchronous(
  TranslationLoader loader,
) =>
    AsyncTranslationLoader(loader);