repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: bump volta pnpm version
[poolifier.git]
/
src
/
pools
/
worker.ts
diff --git
a/src/pools/worker.ts
b/src/pools/worker.ts
index d40754835ab040d7fd8f947238bb9b857c6d58a6..12a2e321b11c3724e739d0e7d9fd4fe708eb9a12 100644
(file)
--- a/
src/pools/worker.ts
+++ b/
src/pools/worker.ts
@@
-1,5
+1,6
@@
-import type { MessageChannel, WorkerOptions } from 'node:worker_threads'
import type { EventEmitter } from 'node:events'
import type { EventEmitter } from 'node:events'
+import type { MessageChannel, WorkerOptions } from 'node:worker_threads'
+
import type { CircularArray } from '../circular-array.js'
import type { Task } from '../utility-types.js'
import type { CircularArray } from '../circular-array.js'
import type { Task } from '../utility-types.js'
@@
-133,10
+134,11
@@
export interface TaskStatistics {
/**
* Enumeration of worker types.
*/
/**
* Enumeration of worker types.
*/
-export const WorkerTypes = Object.freeze({
- thread: 'thread',
- cluster: 'cluster'
-} as const)
+export const WorkerTypes: Readonly<{ thread: 'thread', cluster: 'cluster' }> =
+ Object.freeze({
+ thread: 'thread',
+ cluster: 'cluster'
+ } as const)
/**
* Worker type.
/**
* Worker type.