lib/Master.js
/**
   * Creates a new remote slave.
   * @param {String} connectOptions Options for initializing the remote slave.
   * @param {Object} slaveOptions Options to pass to the slave constructor.
   * @param {...*} rest The rest of the argument to pass to the Slave constructor.
   * @return {Slave} The newly created slave.
   */
Creates a new remote slave.
@param {String} connectOptions Options for initializing the remote slave.
@param {Object} slaveOptions Options to pass to the slave constructor.
@param {...*} rest The rest of the argument to pass to the Slave constructor.
@return {Slave} The newly created slave.
Creates a new remote slave . @param { String } connectOptions Options for initializing the remote slave . @param { Object } slaveOptions Options to pass to the slave constructor . @param { ... * } rest The rest of the argument to pass to the Slave constructor . @return { Slave } The newly created slave .
createRemoteSlave(connectOptions, slaveOptions, ...rest) {
    const done = rest._.getAndStripCallback();
    const slave = new RemoteSlave(connectOptions, slaveOptions, ...rest);
    done.call(slave, slave);
    this.emit('remote slave created', slave);
    this.emit('slave created', slave);
    return slave;
  }
createRemoteSlave ( connectOptions , slaveOptions , ... rest ) { const done = rest . _ . getAndStripCallback ( ) ; const slave = new RemoteSlave ( connectOptions , slaveOptions , ... rest ) ; done . call ( slave , slave ) ; this . emit ( 'remote slave created' , slave ) ; this . emit ( 'slave created' , slave ) ; return slave ; }
Creates a new remote slave.
Creates a new remote slave .
/**
     * Emitted when a new *remote* slave is created by the master process.
     * @event remote slave created
     * @argument {Slave} slave The newly created slave instance.
     */