Skip to content

Commit 863aa78

Browse files
vkarpov15platinumazure
authored andcommitted
Docs: add another example for when not to use no-await-in-loop (#10714)
1 parent 6e78b7d commit 863aa78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/rules/no-await-in-loop.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ async function foo(things) {
7070

7171
In many cases the iterations of a loop are not actually independent of each-other. For example, the
7272
output of one iteration might be used as the input to another. Or, loops may be used to retry
73-
asynchronous operations that were unsuccessful. In such cases it makes sense to use `await` within a
73+
asynchronous operations that were unsuccessful. Or, loops may be used to prevent your code from sending
74+
an excessive amount of requests in parallel. In such cases it makes sense to use `await` within a
7475
loop and it is recommended to disable the rule via a standard ESLint disable comment.

0 commit comments

Comments
 (0)