Skip to content

@shtse8/fluxus v1.0.0


@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

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

ScopeReader

Returns

AsyncValue

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

ScopeReader

Returns

Subscribable<T>

name?

optional name: string

An optional name for debugging.


type?

readonly optional type: "streamProvider"

Defined in: src/providers/streamProvider.ts:50

Released under the ISC License.