We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e27699 commit 797c2d5Copy full SHA for 797c2d5
reactive/kotlinx-coroutines-reactor/src/Mono.kt
@@ -75,6 +75,7 @@ public suspend fun <T> Mono<T>.awaitSingleOrNull(): T? = suspendCancellableCorou
75
*
76
* @throws NoSuchElementException if the Mono does not emit any value
77
*/
78
+// TODO: consider using https://github.com/Kotlin/kotlinx.coroutines/issues/2607 once that lands
79
public suspend fun <T> Mono<T>.awaitSingle(): T = awaitSingleOrNull() ?: throw NoSuchElementException()
80
81
private fun <T> monoInternal(
0 commit comments