1.0.0 • Published 3 years ago
@navidjalali/q v1.0.0
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))
1.0.0
3 years ago