Package Exports
- fastq
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fastq) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
fastq
Fast, in memory work queue.
Benchmarks (1 million tasks):
- setImmedidate: 1715ms
- fastqueue: 1824ms
- async.queue: 6158ms
Obtained on node 0.12.3, on a HP Spectre 360 (the Build 2015 edition).
Install
npm i fastq --save
Usage
'use strict'
var queue = require('fastq')(worker, 1)
queue.push(42, function (err, result) {
if (err) { throw err }
console.log('the result is', result)
})
function worker (arg, cb) {
cb(null, 42 * 2)
}License
ISC