commit | f138bbc4d590f9f13856b254f8b13c9962df592b | [log] [tgz] |
---|---|---|
author | Roman Elizarov <elizarov@gmail.com> | Thu Feb 09 19:13:08 2017 +0300 |
committer | Roman Elizarov <elizarov@gmail.com> | Thu Feb 09 19:13:08 2017 +0300 |
tree | 1a51a0d69ddc2a6836fa9a758e9db685b550c742 | |
parent | 62500ba3f2804f8e49a02ae43f922417fa05cea7 [diff] [blame] |
More kdocs
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 803c84b..b5265fa 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,7 +25,12 @@ * 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. */ -public class ArrayChannel<E>(val capacity: Int) : AbstractChannel<E>() { +public class ArrayChannel<E>( + /** + * Buffer capacity. + */ + val capacity: Int +) : AbstractChannel<E>() { init { check(capacity >= 1) { "ArrayChannel capacity must be at least 1, but $capacity was specified" } }