Skip to content

Commit

Permalink
Add a comment about issue #2607
Browse files Browse the repository at this point in the history
  • Loading branch information
dkhalanskyjb committed Apr 21, 2021
1 parent 29538f4 commit b83a125
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions reactive/kotlinx-coroutines-reactor/src/Mono.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public suspend fun <T> Mono<T>.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 <T> Mono<T>.awaitSingle(): T = awaitSingleOrNull() ?: throw NoSuchElementException()

private fun <T> monoInternal(
Expand Down

0 comments on commit b83a125

Please sign in to comment.