diff --git a/common/kotlinx-coroutines-core-common/src/channels/Channel.kt b/common/kotlinx-coroutines-core-common/src/channels/Channel.kt index 81dc89c7ac..6b2c757836 100644 --- a/common/kotlinx-coroutines-core-common/src/channels/Channel.kt +++ b/common/kotlinx-coroutines-core-common/src/channels/Channel.kt @@ -206,14 +206,7 @@ public interface ReceiveChannel { * * This function can be used in [select] invocation with [onReceiveOrNull] clause. * Use [poll] to try receiving from this channel without waiting. - * - * **Note: This is an obsolete api.** - * This function will be replaced with `receiveOrClosed: ReceiveResult` and - * extension `suspend fun ReceiveChannel.receiveOrNull(): E?` */ - @ExperimentalCoroutinesApi - @ObsoleteCoroutinesApi - @Deprecated(level = DeprecationLevel.WARNING, message = "This method does not distinguish closed channel and null elements") public suspend fun receiveOrNull(): E? /**