Channel (Function)

Signature: Channel(capacity: int) -> Channel<t0>

Description: Creates a buffered channel with a positive capacity.

Parameters

  • capacity (int): Positive number of buffered values

Returns: Channel

Example

let ch = Channel(10)
ch = Channel 10