Appearance
@shtse8/fluxus / src / StreamProviderInstance
Interface: StreamProviderInstance()<T>
Defined in: src/providers/streamProvider.ts:43
Represents an instance of a StreamProvider. It acts as a Provider<AsyncValue<T>> for reading the latest stream value. It carries metadata via a symbol to distinguish it during initialization.
Extends
Provider<AsyncValue<T>>
Type Parameters
T
T
The type of the data emitted by the stream.
StreamProviderInstance(
reader):AsyncValue
Defined in: src/providers/streamProvider.ts:43
Represents an instance of a StreamProvider. It acts as a Provider<AsyncValue<T>> for reading the latest stream value. It carries metadata via a symbol to distinguish it during initialization.
Parameters
reader
Returns
Properties
[$streamProvider]
[$streamProvider]:
object
Defined in: src/providers/streamProvider.ts:44
create()
create: (
read) =>Subscribable<T>
The function that creates the stream source.
Parameters
read
Returns
Subscribable<T>
name?
optionalname:string
An optional name for debugging.
type?
readonlyoptionaltype:"streamProvider"
Defined in: src/providers/streamProvider.ts:50