debug.js 251 B

123456789101112
  1. 'use strict'
  2. const workerFarm = require('../')
  3. , workers = workerFarm(require.resolve('./child'), ['args'])
  4. workers.args(function(err, result) {
  5. console.log(result);
  6. workerFarm.end(workers)
  7. console.log('FINISHED')
  8. process.exit(0)
  9. })