Interface: StatefulStream<T>

"urx/actions".StatefulStream

Just like streams, stateful streams present both input and output ends of a stream. A single stream instance can be both subscribed to and published in. Stateful Streams can also act like depots, preserving the last passed value and immediately publishing it to new subscriptions. getValue can be used to extract value from stateful streams.

Type parameters

Name
T

Hierarchy

Callable

▸ (action: SUBSCRIBE | PUBLISH | RESET | VALUE): any

Defined in urx/actions.ts:65

Just like streams, stateful streams present both input and output ends of a stream. A single stream instance can be both subscribed to and published in. Stateful Streams can also act like depots, preserving the last passed value and immediately publishing it to new subscriptions. getValue can be used to extract value from stateful streams.

internal

Parameters:

NameType
actionSUBSCRIBE | PUBLISH | RESET | VALUE

Returns: any

▸ (action: PUBLISH, value: T): void

Defined in urx/actions.ts:12

Just like streams, stateful streams present both input and output ends of a stream. A single stream instance can be both subscribed to and published in. Stateful Streams can also act like depots, preserving the last passed value and immediately publishing it to new subscriptions. getValue can be used to extract value from stateful streams.

internal

Parameters:

NameType
actionPUBLISH
valueT

Returns: void

▸ (action: SUBSCRIBE, subscription: Subscription<T>): Unsubscribe

Defined in urx/actions.ts:21

Just like streams, stateful streams present both input and output ends of a stream. A single stream instance can be both subscribed to and published in. Stateful Streams can also act like depots, preserving the last passed value and immediately publishing it to new subscriptions. getValue can be used to extract value from stateful streams.

internal

Parameters:

NameType
actionSUBSCRIBE
subscriptionSubscription<T>

Returns: Unsubscribe

▸ (action: RESET): void

Defined in urx/actions.ts:23

Just like streams, stateful streams present both input and output ends of a stream. A single stream instance can be both subscribed to and published in. Stateful Streams can also act like depots, preserving the last passed value and immediately publishing it to new subscriptions. getValue can be used to extract value from stateful streams.

internal

Parameters:

NameType
actionRESET

Returns: void