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