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
- Host: GitHub
- URL: https://github.com/blocka/async-queue
- Owner: blocka
- Created: 2016-03-03T14:59:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-03T15:02:55.000Z (over 10 years ago)
- Last Synced: 2025-01-26T07:11:19.770Z (over 1 year ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme
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();
});
}
```