An open API service indexing awesome lists of open source software.

https://github.com/blocka/async-queue

A queue for asynchronous javascript functions
https://github.com/blocka/async-queue

Last synced: about 1 year ago
JSON representation

A queue for asynchronous javascript functions

Awesome Lists containing this project

README

          

Usage:
```
const asyncCall = (callback) => {
setTimeout(callback,1000);
};

const queue = new AsyncQueue();

for(let i = 0; i < 5; i++) {
queue.push(next => asyncCall(() => {
console.log(i);
next();
});
}
```