repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore: v2.6.24
[poolifier.git]
/
src
/
worker
/
thread-worker.ts
diff --git
a/src/worker/thread-worker.ts
b/src/worker/thread-worker.ts
index dc628bed08fa4b23f29724f88f41484b0097afef..4666fbc7590dda3974df88770b874703c0189e17 100644
(file)
--- 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 { MessageValue } from '../utility-types'
import { AbstractWorker } from './abstract-worker'
import type { WorkerOptions } from './worker-options'
-import type { TaskFunction
s, WorkerFunction } from './worker
-functions'
+import type { TaskFunction
, TaskFunctions } from './task
-functions'
/**
* A thread worker used by a poolifier `ThreadPool`.
/**
* A thread worker used by a poolifier `ThreadPool`.
@@
-38,9
+38,7
@@
export class ThreadWorker<
* @param opts - Options for the worker.
*/
public constructor (
* @param opts - Options for the worker.
*/
public constructor (
- taskFunctions:
- | WorkerFunction<Data, Response>
- | TaskFunctions<Data, Response>,
+ taskFunctions: TaskFunction<Data, Response> | TaskFunctions<Data, Response>,
opts: WorkerOptions = {}
) {
super(
opts: WorkerOptions = {}
) {
super(