diff --git a/reactive/kotlinx-coroutines-reactor/src/Mono.kt b/reactive/kotlinx-coroutines-reactor/src/Mono.kt index 334f841dcd..ef8b413df5 100644 --- a/reactive/kotlinx-coroutines-reactor/src/Mono.kt +++ b/reactive/kotlinx-coroutines-reactor/src/Mono.kt @@ -75,6 +75,7 @@ public suspend fun Mono.awaitSingleOrNull(): T? = suspendCancellableCorou * * @throws NoSuchElementException if the Mono does not emit any value */ +// TODO: consider using https://github.com/Kotlin/kotlinx.coroutines/issues/2607 once that lands public suspend fun Mono.awaitSingle(): T = awaitSingleOrNull() ?: throw NoSuchElementException() private fun monoInternal(