You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/channels/ArrayBroadcastChannel.kt
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/channels/BroadcastChannel.kt
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/channels/Channels.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,9 @@ public fun <E> Sequence<E>.asReceiveChannel(context: CoroutineContext = Unconfin
46
46
47
47
/**
48
48
* Opens subscription to this [BroadcastChannel] and makes sure that the given [block] consumes all elements
49
-
* from it by always invoking [cancel][SubscriptionReceiveChannel.cancel] after the execution of the block.
49
+
* from it by always invoking [cancel][ReceiveChannel.cancel] after the execution of the block.
50
50
*/
51
-
publicinlinefun <E, R> BroadcastChannel<E>.consume(block:SubscriptionReceiveChannel<E>.() ->R): R {
51
+
publicinlinefun <E, R> BroadcastChannel<E>.consume(block:ReceiveChannel<E>.() ->R): R {
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/main/kotlin/kotlinx/coroutines/experimental/channels/ConflatedBroadcastChannel.kt
Copy file name to clipboardExpand all lines: common/kotlinx-coroutines-core-common/src/test/kotlin/kotlinx/coroutines/experimental/channels/ConflatedBroadcastChannelTest.kt
+2-2
Original file line number
Diff line number
Diff line change
@@ -38,7 +38,7 @@ class ConflatedBroadcastChannelTest : TestBase() {
38
38
expect(6)
39
39
assertEquals("two", sub.receive()) // suspends
40
40
expect(12)
41
-
sub.close()
41
+
sub.cancel()
42
42
expect(13)
43
43
}
44
44
@@ -60,7 +60,7 @@ class ConflatedBroadcastChannelTest : TestBase() {
60
60
expect(17)
61
61
assertNull(sub.receiveOrNull()) // suspends until closed
Copy file name to clipboardExpand all lines: core/kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/channels/BroadcastChannelMultiReceiveStressTest.kt
+7-7
Original file line number
Diff line number
Diff line change
@@ -78,15 +78,15 @@ class BroadcastChannelMultiReceiveStressTest(
Copy file name to clipboardExpand all lines: core/kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/channels/BroadcastChannelSubStressTest.kt
+7-7
Original file line number
Diff line number
Diff line change
@@ -60,13 +60,13 @@ class BroadcastChannelSubStressTest(
Copy file name to clipboardExpand all lines: core/kotlinx-coroutines-core/src/test/kotlin/kotlinx/coroutines/experimental/channels/ConflatedBroadcastChannelNotifyStressTest.kt
+4-2
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,9 @@ class ConflatedBroadcastChannelNotifyStressTest : TestBase() {
Copy file name to clipboardExpand all lines: reactive/kotlinx-coroutines-reactive/src/test/kotlin/kotlinx/coroutines/experimental/reactive/IntegrationTest.kt
Copy file name to clipboardExpand all lines: reactive/kotlinx-coroutines-reactive/src/test/kotlin/kotlinx/coroutines/experimental/reactive/PublisherSubscriptionSelectTest.kt
0 commit comments