ChannelUnbounded.this

this() @disable
No documentation available for this declaration.
this(size_t initialCapacity, size_t memoryLimit = 0) @trusted

Construct an unbounded channel with an initial capacity and memory limit.

The channel grows beyond initialCapacity as needed, but trySend returns WOULD_BLOCK when memoryLimit items are buffered.

Parameters

initialCapacityStarting buffer size.
memoryLimitMaximum buffered items before backpressure. 0 = unlimited.