Interface: Flow<T>

Defined in: pkg/flow/src/index.ts:22

A computation built from a sequence of pure functions.

Note that the Flow interface makes no guarantees about when the functions will be called, or how many times they will be called.

Type Parameters

Type Parameter
T

Methods

and()

and<U>(f: (value: T) => U): Flow<U>

Defined in: pkg/flow/src/index.ts:27

Adds the given function to the end of the sequence. This does not modify the current Flow; instead, it creates and returns a new instance.

Type Parameters

Type Parameter
U

Parameters

Parameter Type
f (value: T) => U

Returns

Flow<U>


result()

result(): T

Defined in: pkg/flow/src/index.ts:31

Returns the result of the computation.

Returns

T