[ CCode ( has_construct_function = false ) ]
public Channel (uint capacity)
Creates a new [class@Dex.
Channel].
If capacity is non-zero, it can be used to limit the size of the channel so that functions can asynchronously stall until items have been removed from the channel. This is useful in buffering situations so that the producer does not outpace the consumer.
| capacity |
the channel queue depth or 0 for unlimited |
|
a new [class@Dex.Channel] |