diff --git a/reactive/kotlinx-coroutines-reactor/src/Mono.kt b/reactive/kotlinx-coroutines-reactor/src/Mono.kt index fa8239f8bf..87ac3fe863 100644 --- a/reactive/kotlinx-coroutines-reactor/src/Mono.kt +++ b/reactive/kotlinx-coroutines-reactor/src/Mono.kt @@ -74,6 +74,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(