Methods
-
<private, inner> cleanup()
-
<private, inner> fork(number)
-
Fork Workers N times
Parameters:
Name Type Argument Default Description numberint <optional>
cpus.length the number of processes to start
-
<inner> get() → {number}
-
Get number of workers
Returns:
- Type
- number
-
<inner> get() → {*}
-
get the cluster object
Returns:
- Type
- *
-
<private, inner> lifecycleTimeoutHandler()
-
Called when workers have reached the end of their lifespan