- public constructor (fn: (data: Data) => Response, opts: WorkerOptions = {}) {
- super('worker-thread-pool:pioardi', isMainThread, fn, parentPort, opts)
+ public constructor (
+ taskFunctions:
+ | WorkerFunction<Data, Response>
+ | TaskFunctions<Data, Response>,
+ opts: WorkerOptions = {}
+ ) {
+ super(
+ 'worker-thread-pool:poolifier',
+ isMainThread,
+ taskFunctions,
+ parentPort as MessagePort,
+ opts
+ )
+ }
+
+ protected get id (): number {
+ return threadId