sequential-task-queue icon indicating copy to clipboard operation
sequential-task-queue copied to clipboard

FIFO task queue for node and the browser. Supports promises, timeouts and task cancellation.

Results 8 sequential-task-queue issues
Sort by recently updated
recently updated
newest added

Using gulp makes it harder to contribute, consider replacing it even only for running the UT

Is it possible to get the current size of the queue? It'd be useful to have an idea of how many tasks are waiting in the queue at a given...

``` var queue = new SequentialTaskQueue(); queue.push(() => { console.log("first task"); }); setTimeout(()=>{ queue.push(() => { console.log("second task"); }); } ,500); ``` will task 1 always complete before task 2?

question

I'm using this lib for the first time, and I'm seeing these warnings somewhat frequently. Essentially any time I have a Promise task, and it's rejected, I see this warning....

discussion

Argument `options` of method `push()` now has `priority` field. Task with the lower value gets executed first. Simple test: ```javascript const SequentialTaskQueue = require('sequential-task-queue').SequentialTaskQueue; function job(n, pr) { return new...

I'd like to subclass SequentialTaskQueue; would it be possible to make `next` and `queue` protected rather than private?

enhancement

ATM the package throws up webpack since `webpack.optimize.UglifyJsPlugin` can't process `node_modules/sequential-task-queue/dist/lib/sequential-task-queue.js` because it has es6 class. I guess it would also break in older browsers which don't support es6 semantics....

Hi. Would be great to have the posibility to set a maxsize for the queue

enhancement