repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: use eslint plugin to sort imports
[poolifier.git]
/
src
/
worker
/
cluster-worker.ts
diff --git
a/src/worker/cluster-worker.ts
b/src/worker/cluster-worker.ts
index 1d2729812f905d9f9724e5bf9106358ae8aa893a..8725dc89397c08d4b1e792333fd9fe08cd75ef62 100644
(file)
--- a/
src/worker/cluster-worker.ts
+++ b/
src/worker/cluster-worker.ts
@@
-1,6
+1,6
@@
import type { Worker } from 'node:cluster'
import cluster from 'node:cluster'
import type { Worker } from 'node:cluster'
import cluster from 'node:cluster'
-import type { MessageValue } from '../utility-types'
+import type { MessageValue
, WorkerFunction
} from '../utility-types'
import { AbstractWorker } from './abstract-worker'
import type { WorkerOptions } from './worker-options'
import { AbstractWorker } from './abstract-worker'
import type { WorkerOptions } from './worker-options'
@@
-29,7
+29,7
@@
export class ClusterWorker<
* @param opts - Options for the worker.
*/
public constructor (
* @param opts - Options for the worker.
*/
public constructor (
- fn:
(data: Data) => Response | Promise<
Response>,
+ fn:
WorkerFunction<Data,
Response>,
opts: WorkerOptions = {}
) {
super(
opts: WorkerOptions = {}
) {
super(