Closed slavafomin closed 1 year ago
@slavafomin feel free to send a PR
@slavafomin @kwolfy anyone interested in working on a patch for this?
Before returning Promise there is one ambiguous thing should be resolved.
Starting queue with callback
and without it has different errors handling behaviour:
queue.start(callback)
, when error occurs queue will trigger error
event, and stops execution;queue.start()
, when error occurs queue will just trigger error
event and nothing more.In my view there should be more transparent way to determine, what queue should do when error occurs - just trigger error
event or stops execution next jobs with error
event.
@sempasha good point - I'm open to changes that break the API if we all agree they improve the design
@slavafomin Resolve https://github.com/jessetane/queue/pull/93
Hello!
Thank you for this great module! It's very convenient.
However, it would be great to add support for Promises in
queue.start()
.Right now I have to wrap it like this:
And then:
The better would be: