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