Singleton.async constructor

const Singleton.async({
  1. bool lazy,
  2. bool weak,
})

Creates an asynchronous singleton provider.

Equivalent to applying SingletonAsync directly.

Implementation

const factory Singleton.async({bool lazy, bool weak}) = SingletonAsync;