Skip to content

@epikodelabs/streamix


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

Function: send()

send<T>(ch, value, name?): SelectSendCase<T>

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

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

Type Parameters

T

T

The channel value type.

Parameters

ch

Channel<T>

The channel to send into.

value

T

The value to send.

name?

string

Optional identifier for this case.

Returns

SelectSendCase<T>

A SelectSendCase.

Released under the GNU AGPL v3 or later.