repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: throw error at simalator start/stop outside the main thread
[e-mobility-charging-stations-simulator.git]
/
src
/
worker
/
WorkerTypes.ts
diff --git
a/src/worker/WorkerTypes.ts
b/src/worker/WorkerTypes.ts
index f79be0b28d866861d826b9cdafe3596561ecd9fe..1b7cbb300cf95a7ac5c9ba22bc4e8ac4a622afe6 100644
(file)
--- a/
src/worker/WorkerTypes.ts
+++ b/
src/worker/WorkerTypes.ts
@@
-3,9
+3,9
@@
import type { Worker } from 'node:worker_threads';
import type { PoolOptions } from 'poolifier';
export enum WorkerProcessType {
import type { PoolOptions } from 'poolifier';
export enum WorkerProcessType {
-
WORKER_SET
= 'workerSet',
-
DYNAMIC_POOL
= 'dynamicPool',
-
STATIC_POOL
= 'staticPool',
+
workerSet
= 'workerSet',
+
dynamicPool
= 'dynamicPool',
+
staticPool
= 'staticPool',
}
export type MessageHandler<T> = (this: T, message: unknown) => void;
}
export type MessageHandler<T> = (this: T, message: unknown) => void;
@@
-33,5
+33,5
@@
export type WorkerMessage<T extends WorkerData> = {
};
export enum WorkerMessageEvents {
};
export enum WorkerMessageEvents {
-
START_WORKER_ELEMENT
= 'startWorkerElement',
+
startWorkerElement
= 'startWorkerElement',
}
}