the-forest/client/node_modules/fastq/example.js

15 lines
238 B
JavaScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
'use strict'
/* eslint-disable no-var */
var queue = require('./')(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)
}