Appearance
@shtse8/fluxus / src / AsyncProviderInstance
Interface: AsyncProviderInstance()<T>
Defined in: src/providers/asyncProvider.ts:23
Represents an instance of an AsyncProvider. It acts as a Provider<AsyncValue<T>> for reading the async state. It carries metadata via a symbol to distinguish it during initialization.
Extends
Provider<AsyncValue<T>>
Type Parameters
T
T
The type of the data produced by the async operation.
AsyncProviderInstance(
reader):AsyncValue
Defined in: src/providers/asyncProvider.ts:23
Represents an instance of an AsyncProvider. It acts as a Provider<AsyncValue<T>> for reading the async state. It carries metadata via a symbol to distinguish it during initialization.
Parameters
reader
Returns
Properties
[$asyncProvider]
[$asyncProvider]:
object
Defined in: src/providers/asyncProvider.ts:24
create()
create: (
read) =>Promise<T>
The asynchronous function that produces the value.
Parameters
read
Returns
Promise<T>
options?
optionaloptions:AsyncProviderOptions
Optional configuration for the provider.
type?
readonlyoptionaltype:"asyncProvider"
Defined in: src/providers/asyncProvider.ts:31