commit | 8385ec91a90ae080c2fc2de4c918df8879ab350b | [log] [tgz] |
---|---|---|
author | Roman Elizarov <elizarov@gmail.com> | Thu May 11 18:32:52 2017 +0300 |
committer | Roman Elizarov <elizarov@gmail.com> | Thu May 11 18:32:52 2017 +0300 |
tree | f16f8e8a2e03aaaa3d2600e1926f29f40e1071a7 | |
parent | 4f69102e6aaf24b41a3c59347743b9c837a50a71 [diff] [blame] |
BroadcastChannel factory function
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 6a7afc7..2764e3d 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
@@ -35,7 +35,7 @@ val capacity: Int ) : AbstractChannel<E>() { init { - check(capacity >= 1) { "ArrayChannel capacity must be at least 1, but $capacity was specified" } + require(capacity >= 1) { "ArrayChannel capacity must be at least 1, but $capacity was specified" } } private val lock = ReentrantLock()