mcollina / fastq

Fast, in memory work queue
ISC License
943 stars 47 forks source link

Add error method to queue object #22

Closed jpbecotte closed 3 years ago

jpbecotte commented 4 years ago

in order to be compatible with the async.queue API, it would be nice to have a .error method like specified in async doc:

// assign an error callback
q.error(function(err, task) {
    console.error('task experienced an error');
});
mcollina commented 4 years ago

Would you like to send a Pull Request to address this issue? Remember to add unit tests.