@epikodelabs/streamix / coroutines/src/public-api / channel
Function: channel()
channel<
T>(capacity?):Channel<T>
Defined in: projects/libraries/streamix/coroutines/src/lib/utils/channel.ts:97
Creates a new async channel with the given buffer capacity.
Type Parameters
T
T
Parameters
capacity?
number = 0
Buffer size. 0 means unbuffered (hand-off semantics). Must be a non-negative integer.
Returns
Channel<T>
A new channel.