Newer
Older
alert / js / node_modules / worker-farm / tests / debug.js
@Réz István Réz István on 18 Nov 2021 251 bytes first commit
'use strict'

const workerFarm = require('../')
    , workers    = workerFarm(require.resolve('./child'), ['args'])


workers.args(function(err, result) {
  console.log(result);
  workerFarm.end(workers)
  console.log('FINISHED')
  process.exit(0)
})