Skip to content

Commit cd8a496

Browse files
committed
~ Not obsolete until we have replacement
1 parent f361535 commit cd8a496

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kotlinx-coroutines-core/common/src/channels/Broadcast.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
2+
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
33
*/
44

55
package kotlinx.coroutines.channels
@@ -30,16 +30,16 @@ import kotlin.native.concurrent.*
3030
* It causes eventual failure of the broadcast coroutine and cancellation of the underlying channel, too,
3131
* but it is not as prompt.
3232
*
33-
* ### Obsolete
33+
* ### Future replacement
3434
*
3535
* This function has an inappropriate result type of [BroadcastChannel] which provides
3636
* [send][BroadcastChannel.send] and [close][BroadcastChannel.close] operations that interfere with
3737
* the broadcasting coroutine in hard-to-specify ways. It will be replaced with
38-
* sharing operators on [Flow][kotlinx.coroutines.flow.Flow].
38+
* sharing operators on [Flow][kotlinx.coroutines.flow.Flow] in the future.
3939
*
4040
* @param start coroutine start option. The default value is [CoroutineStart.LAZY].
4141
*/
42-
@ObsoleteCoroutinesApi // since version 1.4.0
42+
//@ObsoleteCoroutinesApi // since version 1.4.0
4343
fun <E> ReceiveChannel<E>.broadcast(
4444
capacity: Int = 1,
4545
start: CoroutineStart = CoroutineStart.LAZY

0 commit comments

Comments
 (0)