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