<init>
ArrayChannel(capacity: Int)
Platform and version requirements: JVM
Channel with array buffer of a fixed capacity. Sender suspends only when buffer is fully and receiver suspends only when buffer is empty.
This channel is created by Channel(capacity)
factory function invocation.
This implementation uses lock to protect the buffer, which is held only during very short buffer-update operations. The lists of suspended senders or receivers are lock-free.