Signature: Channel(capacity: int) -> Channel

Description: Creates a new channel with the specified capacity.

Parameters

Returns: Channel

Example

let ch = Channel(10)