Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / coroutines/src/public-api / receive

Function: receive()

receive<T>(ch, name?): SelectReceiveCase<T>

Defined in: projects/libraries/streamix/coroutines/src/lib/utils/select.ts:129

Builds a receive case for use with select(...).

Type Parameters

T

T

The channel value type.

Parameters

ch

Channel<T>

The channel to receive from.

name?

string

Optional identifier for this case.

Returns

SelectReceiveCase<T>

A SelectReceiveCase.

Released under the GNU AGPL v3 or later.