- public constructor (fn: (data: Data) => Response, opts: WorkerOptions = {}) {
- super('worker-cluster-pool:pioardi', isMaster, fn, worker, opts)
+ public constructor (
+ taskFunctions: TaskFunction<Data, Response> | TaskFunctions<Data, Response>,
+ opts: WorkerOptions = {}
+ ) {
+ super(
+ 'worker-cluster-pool:poolifier',
+ cluster.isPrimary,
+ cluster.worker as Worker,
+ taskFunctions,
+ opts
+ )