From f5f2ec4e1185d069f41cfed543119ba166cace6f Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 19 Apr 2021 07:46:29 +0300 Subject: [PATCH] tweaks... Signed-off-by: Alex A. Naanou --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f7bd1b4..779bfbf 100644 --- a/README.md +++ b/README.md @@ -1243,14 +1243,14 @@ See [`.then(..)`](#promise-iterthen--promise-itercatch--promise-it A _cooperative promise_ is one that can be finalized externally/cooperatively. -This can be useful when breaking recursive dependencies between promises or when +This can be useful for breaking recursive dependencies between promises or when it is simpler to thread the result receiver promise down the stack than building a promise stack and manually threading the result up. Example: ```javascript // NOTE: implementing this via Promise.any(..) would also require implementing a -// way to stop the "workers" that did not succeed to get the result first... +// way to stop the "workers" after the result is found... async function controller(trigger){ while(!trigger.isSet)