docs.
This commit is contained in:
parent
a5ad8dcbfa
commit
aac2f629d0
@ -54,7 +54,7 @@ Workers.CORES = getCores();
|
|||||||
/**
|
/**
|
||||||
* Spawn a new worker.
|
* Spawn a new worker.
|
||||||
* @param {Number} index - Worker ID.
|
* @param {Number} index - Worker ID.
|
||||||
* @returns {ChildProcess}
|
* @returns {Worker}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Workers.prototype.spawn = function spawn(id) {
|
Workers.prototype.spawn = function spawn(id) {
|
||||||
@ -96,7 +96,7 @@ Workers.prototype.spawn = function spawn(id) {
|
|||||||
* and will automatically load balance the workers based
|
* and will automatically load balance the workers based
|
||||||
* on job ID.
|
* on job ID.
|
||||||
* @param {Number} job
|
* @param {Number} job
|
||||||
* @returns {ChildProcess}
|
* @returns {Worker}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
Workers.prototype.alloc = function alloc(job) {
|
Workers.prototype.alloc = function alloc(job) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user