We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e321394 commit 64e49dcCopy full SHA for 64e49dc
common/kotlinx-coroutines-core-common/src/channels/Channel.kt
@@ -210,10 +210,9 @@ public interface ReceiveChannel<out E> {
210
* **Note: This is an obsolete api.**
211
* This function will be replaced with `receiveOrClosed: ReceiveResult<E>` and
212
* extension `suspend fun <E: Any> ReceiveChannel<E>.receiveOrNull(): E?`
213
+ * It is obsolete because it does not distinguish closed channel and null elements.
214
*/
- @ExperimentalCoroutinesApi
215
@ObsoleteCoroutinesApi
216
- @Deprecated(level = DeprecationLevel.WARNING, message = "This method does not distinguish closed channel and null elements")
217
public suspend fun receiveOrNull(): E?
218
219
/**
0 commit comments