Skip to content

Commit 5841eff

Browse files
authored
Modify the KDoc for awaitAll (Kotlin#3187)
It seems like there is an extra "when" and a missing "for".
1 parent 1581592 commit 5841eff

File tree

1 file changed

+2
-2
lines changed
  • kotlinx-coroutines-core/common/src

1 file changed

+2
-2
lines changed

kotlinx-coroutines-core/common/src/Await.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public suspend fun <T> awaitAll(vararg deferreds: Deferred<T>): List<T> =
2929
* when all deferred computations are complete or resumes with the first thrown exception if any of computations
3030
* complete exceptionally including cancellation.
3131
*
32-
* This function is **not** equivalent to `this.map { it.await() }` which fails only when when it sequentially
33-
* gets to wait the failing deferred, while this `awaitAll` fails immediately as soon as any of the deferreds fail.
32+
* This function is **not** equivalent to `this.map { it.await() }` which fails only when it sequentially
33+
* gets to wait for the failing deferred, while this `awaitAll` fails immediately as soon as any of the deferreds fail.
3434
*
3535
* This suspending function is cancellable.
3636
* If the [Job] of the current coroutine is cancelled or completed while this suspending function is waiting,

0 commit comments

Comments
 (0)