Sha256: 820451eb4c5a89883ca2e07601b68d7513149d28fdc589072e78f7a4a2b3ecdd
Contents?: true
Size: 526 Bytes
Versions: 23
Compression:
Stored size: 526 Bytes
Contents
import * as fastq from '../' const queue = fastq({ hello: 'world' }, worker, 1) queue.push(42, (err, done) => { if (err) throw err console.log('the result is', done) }) queue.concurrency queue.drain() queue.empty = () => undefined queue.idle() queue.kill() queue.killAndDrain() queue.length queue.pause() queue.resume() queue.saturated = () => undefined queue.unshift(42, (err, done) => { if (err) throw err console.log('the result is', done) }) function worker(arg: any, cb: any) { cb(null, 42 * 2) }
Version data entries
23 entries across 23 versions & 1 rubygems