You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.
Performing an operation on each element of an iterable is a common task. However, performing an await as part of each operation is an indication that the program is not taking full advantage of the parallelization benefits of async/await.
Usually, the code should be refactored to create all the promises at once, then get access to the results using Promise.all(). Otherwise, each successive operation will not start until the previous one has completed.
What do you think? Can this part be improve or is it a false positive?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a global eslint configuration for all my company projects.
It warns me at this part:
sapper-template/src/service-worker.js
Lines 25 to 27 in c0ca291
According to the rule: https://eslint.org/docs/rules/no-await-in-loop
What do you think? Can this part be improve or is it a false positive?
The text was updated successfully, but these errors were encountered: