From d797cac9a6065fe63bdd9201b33a29e9f3d31a21 Mon Sep 17 00:00:00 2001 From: Greg Tener Date: Sat, 12 Feb 2022 08:53:33 -0800 Subject: [PATCH] Modify the KDoc for awaitAll It seems like there is an extra "when" and a missing "for". --- kotlinx-coroutines-core/common/src/Await.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlinx-coroutines-core/common/src/Await.kt b/kotlinx-coroutines-core/common/src/Await.kt index e06ed33025..c1669e2554 100644 --- a/kotlinx-coroutines-core/common/src/Await.kt +++ b/kotlinx-coroutines-core/common/src/Await.kt @@ -29,8 +29,8 @@ public suspend fun awaitAll(vararg deferreds: Deferred): List = * when all deferred computations are complete or resumes with the first thrown exception if any of computations * complete exceptionally including cancellation. * - * This function is **not** equivalent to `this.map { it.await() }` which fails only when when it sequentially - * gets to wait the failing deferred, while this `awaitAll` fails immediately as soon as any of the deferreds fail. + * This function is **not** equivalent to `this.map { it.await() }` which fails only when it sequentially + * gets to wait for the failing deferred, while this `awaitAll` fails immediately as soon as any of the deferreds fail. * * This suspending function is cancellable. * If the [Job] of the current coroutine is cancelled or completed while this suspending function is waiting,