X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fthread-worker.ts;h=4666fbc7590dda3974df88770b874703c0189e17;hb=7aadd6e5513356eac12bb83ece9a2b6032a4dbf9;hp=dc628bed08fa4b23f29724f88f41484b0097afef;hpb=d655027ba35d40bd823574f630debc7c3a860638;p=poolifier.git diff --git a/src/worker/thread-worker.ts b/src/worker/thread-worker.ts index dc628bed..4666fbc7 100644 --- a/src/worker/thread-worker.ts +++ b/src/worker/thread-worker.ts @@ -7,7 +7,7 @@ import { import type { MessageValue } from '../utility-types' import { AbstractWorker } from './abstract-worker' import type { WorkerOptions } from './worker-options' -import type { TaskFunctions, WorkerFunction } from './worker-functions' +import type { TaskFunction, TaskFunctions } from './task-functions' /** * A thread worker used by a poolifier `ThreadPool`. @@ -38,9 +38,7 @@ export class ThreadWorker< * @param opts - Options for the worker. */ public constructor ( - taskFunctions: - | WorkerFunction - | TaskFunctions, + taskFunctions: TaskFunction | TaskFunctions, opts: WorkerOptions = {} ) { super(