Skip to content

Instantly share code, notes, and snippets.

@xrip
Created May 4, 2022 10:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xrip/5c2a9ddadcd17afa5bf821c8e025e8cd to your computer and use it in GitHub Desktop.
Save xrip/5c2a9ddadcd17afa5bf821c8e025e8cd to your computer and use it in GitHub Desktop.
while (funcs.length) {
// 100 at a time
await Promise.all( funcs.splice(0, 100).map(f => f()) )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment