addWorker = (worker) => {
      worker.on(
        "message",
        onMessageFromWorker(masterState, {
          port,
          host,
          watchReaper,
          disableScheduler,
          pid: worker.process.pid,
        })
      );
    }
@function
@name "module.exports function"
@param {object} [opts = {}]
@param {number} [opts.port = 3000]
@param {host} [opts.host]
@param {boolean} opts.watchReaper
@param {boolean} opts.disableScheduler
@param {number} opts.defaultNCPUs
@param {boolean} opts.dev
@param {...*} opts.appargs
@returns {Promise<void>}