channel

fnChannel!T * channel(T)(size_t capacity)

Create a bounded channel with the specified capacity.

Parameters

capacityMaximum number of items the channel can hold.

Returns

A pointer to a new channel allocated on the GC heap.