commit node_modules and generated files

This commit is contained in:
Robert Brignull 2020-08-11 12:43:27 +01:00
parent 6d7a135fea
commit 34b372292b
3379 changed files with 449603 additions and 2029 deletions

5
node_modules/worker-farm/examples/basic/child.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
'use strict'
module.exports = function (inp, callback) {
callback(null, inp + ' BAR (' + process.pid + ')')
}

13
node_modules/worker-farm/examples/basic/index.js generated vendored Normal file
View file

@ -0,0 +1,13 @@
'use strict'
let workerFarm = require('../../')
, workers = workerFarm(require.resolve('./child'))
, ret = 0
for (let i = 0; i < 10; i++) {
workers('#' + i + ' FOO', function (err, outp) {
console.log(outp)
if (++ret == 10)
workerFarm.end(workers)
})
}