Represents a class that can be used to create a singleton instance of a class that is created asynchronously.
Creates a new instance of the AsyncSingleton class.
The factory function that creates the instance.
The function that checks if the instance is valid.
Clears the current value and rejects all pending promises.
Gets the current value, may be undefined or invalid.
Gets the instance of the class.
The configuration object for creating the instance.
Represents a class that can be used to create a singleton instance of a class that is created asynchronously.