lib/Slave.js
/**
 * Determines if the slave can execute tasks. And used to check for shutdown conditions.
 * @param {Slave} slave The slave to deterine interactivity status.
 * @return {Boolean} True if the slave can interact, false otherwise.
 */
Determines if the slave can execute tasks. And used to check for shutdown conditions.
@param {Slave} slave The slave to deterine interactivity status.
@return {Boolean} True if the slave can interact, false otherwise.
Determines if the slave can execute tasks . And used to check for shutdown conditions . @param { Slave } slave The slave to deterine interactivity status . @return { Boolean } True if the slave can interact false otherwise .
function canInteract(slave) {
  return !slave[settings].spawnError
    && !slave[settings].exited
    && !slave[settings].closed
    && !slave[settings].rejectingRequests;
}
function canInteract ( slave ) { return ! slave [ settings ] . spawnError && ! slave [ settings ] . exited && ! slave [ settings ] . closed && ! slave [ settings ] . rejectingRequests ; }
Determines if the slave can execute tasks.
Determines if the slave can execute tasks .