ptq
v0.1.7
Published
promise task queue
Downloads
4
Readme
ptq
How to use
import TaskQueue from 'ptq'
const queue = [1, 2, 3, 4, 5]
const task = (num) => {
return new Promise((resolve) => {
resolve(num)
})
}
new TaskQueue(queue, task, 3).start()