Skip to content

kylerummens/promise-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Node.js Promise Queue

Usage

import PromiseQueue from '...';

const queue = new PromiseQueue(75);

for(let i = 0; i < 10_000; i++) {
  queue.add((async () => {
    await myAsyncFunction();
    await doSomethingElse();
    return anotherAsyncFunction();
  }));
}

await queue.allComplete();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published