Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow loops containing await #8

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

joshski
Copy link

@joshski joshski commented Oct 22, 2018

Hi!

I found this plugin handy... but I don't mind loops with awaits in them, e.g.

for (const foo of foos) {
  await foo()
}

...because this is a neat way of expressing serial execution of a list of async things (compared to say, using reduce).

But I'm not sure if this would warrant spawning a new plugin (e.g. no-sync-loops), or an option for this one. What do you think?

@nemobot nemobot added the WIP label Oct 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants