commit | f2a710a6d7a1a5fd1f60dea0d7287190853a39af | [log] [tgz] |
---|---|---|
author | Roman Elizarov <elizarov@gmail.com> | Fri Jul 21 18:33:59 2017 +0300 |
committer | Roman Elizarov <elizarov@gmail.com> | Fri Jul 21 18:33:59 2017 +0300 |
tree | 224f5a9dd45043192234df32eea0713dd6a8f67c | |
parent | e2ceda833a46f019287d0ff0a5ff3bf1888ccfbb [diff] [blame] |
Channel pseudo-constructor is replaced with top-level fun
diff --git a/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/ArrayChannel.kt b/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/ArrayChannel.kt index 79883f9..4d2c5c3 100644 --- a/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/ArrayChannel.kt +++ b/kotlinx-coroutines-core/src/main/kotlin/kotlinx/coroutines/experimental/channels/ArrayChannel.kt
@@ -25,6 +25,8 @@ * 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. */