*
* @see https://nodejs.org/api/cluster.html#cluster_cluster_fork_env
*/
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- env?: any
+ env?: Record<string, unknown>
/**
* Cluster settings.
*
public constructor (
numberOfWorkers: number,
filePath: string,
- public readonly opts: ClusterPoolOptions = {}
+ protected readonly opts: ClusterPoolOptions = {}
) {
super(numberOfWorkers, filePath, opts)
}
return this.numberOfWorkers
}
- /** @inheritDoc */
- protected get full (): boolean {
- return this.workerNodes.length >= this.numberOfWorkers
- }
-
/** @inheritDoc */
protected get busy (): boolean {
return this.internalBusy()