X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fworker%2Fthread-worker.ts;h=81d98aa5c2fed44c67f84f1ea8145d24e4e3b676;hb=b6b3245344bd453ea91fa3d74acd5145f70d84fd;hp=75cd9da505b709a954f188ab209145221c90bc84;hpb=82888165d01dba6a57f5047d4a4c27c6da6025f3;p=poolifier.git diff --git a/src/worker/thread-worker.ts b/src/worker/thread-worker.ts index 75cd9da5..81d98aa5 100644 --- a/src/worker/thread-worker.ts +++ b/src/worker/thread-worker.ts @@ -1,12 +1,8 @@ -import type { MessagePort } from 'node:worker_threads' -import { isMainThread, parentPort } from 'node:worker_threads' -import type { - MessageValue, - TaskFunctions, - WorkerFunction -} from '../utility-types' +import { type MessagePort, isMainThread, parentPort } from 'node:worker_threads' +import type { MessageValue } from '../utility-types' import { AbstractWorker } from './abstract-worker' import type { WorkerOptions } from './worker-options' +import type { TaskFunctions, WorkerFunction } from './worker-functions' /** * A thread worker used by a poolifier `ThreadPool`.