@navidjalali/q
v1.0.0
Published
Promise based queue
Downloads
3
Readme
Q
A lightweight promise based queue.
const queue = new Q<string>()
// You can also pass a timeout, it defaults to 10s.
queue.offer("Hello")
.then(queueLength => f(queueLength))
queue.take()
.then(str => g(str))