2.2.1 • Published 7 years ago

named-queue v2.2.1

Weekly downloads
95
License
MIT
Repository
github
Last release
7 years ago

named-queue

like async.queue, but tasks are named and de-duplicated

Init

var namedQueue = require('named-queue')

var queue = new namedQueue(processor, concurrency)

processor - function(task, cb)

concurrency - Number for maximum concurrent tasks; can be Infinity

Methods

WARNING All tasks must have an .id property used to identify and avoid doing the same task more than once at a time

queue.push(task, cb)

queue.unshift(task, cb)

queue.length()

2.2.1

7 years ago

2.2.0

7 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago