Skip to content

@epikodelabs/actionstack


@epikodelabs/actionstack / selectStreamAsync

Function: selectStreamAsync()

selectStreamAsync<T, R>(selector, stateStream): Stream<R>

Defined in: selectors.ts:247

Creates a stream from an async selector and a state stream.

Type Parameters

T

T

R

R

Parameters

selector

(state) => Promise<R>

An async selector function.

stateStream

Stream<T>

The source stream of state values.

Returns

Stream<R>

Released under the MIT License.