Skip to content

Commit a4ddb16

Browse files
committed
Add a comment about issue #2607
1 parent c1e7a32 commit a4ddb16

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
@@ -74,6 +74,7 @@ public suspend fun <T> Mono<T>.awaitSingleOrNull(): T? = suspendCancellableCorou
7474
*
7575
* @throws NoSuchElementException if the Mono does not emit any value
7676
*/
77+
// TODO: consider using https://github.com/Kotlin/kotlinx.coroutines/issues/2607 once that lands
7778
public suspend fun <T> Mono<T>.awaitSingle(): T = awaitSingleOrNull() ?: throw NoSuchElementException()
7879

7980
private fun <T> monoInternal(

0 commit comments

Comments
 (0)