Skip to content

Commit b83a125

Browse files
committed
Add a comment about issue #2607
1 parent 29538f4 commit b83a125

File tree

1 file changed

+1
-0
lines changed
  • reactive/kotlinx-coroutines-reactor/src

1 file changed

+1
-0
lines changed

reactive/kotlinx-coroutines-reactor/src/Mono.kt

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ public suspend fun <T> Mono<T>.awaitSingleOrNull(): T? = suspendCancellableCorou
7575
*
7676
* @throws NoSuchElementException if the Mono does not emit any value
7777
*/
78+
// TODO: consider using https://github.com/Kotlin/kotlinx.coroutines/issues/2607 once that lands
7879
public suspend fun <T> Mono<T>.awaitSingle(): T = awaitSingleOrNull() ?: throw NoSuchElementException()
7980

8081
private fun <T> monoInternal(

0 commit comments

Comments
 (0)