repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fix fair share algorithm implementation
[poolifier.git]
/
src
/
pools
/
worker.ts
diff --git
a/src/pools/worker.ts
b/src/pools/worker.ts
index 716376faf54ac6925cf4d4ff2ea4804e1d2cb38e..2db5f630fefa5a1e81161ca75362e7c73fc450a1 100644
(file)
--- a/
src/pools/worker.ts
+++ b/
src/pools/worker.ts
@@
-37,12
+37,16
@@
export type ExitHandler<Worker extends IWorker> = (
* @internal
*/
export interface Task<Data = unknown> {
* @internal
*/
export interface Task<Data = unknown> {
+ /**
+ * Task name.
+ */
+ readonly name?: string
/**
* Task input data that will be passed to the worker.
*/
readonly data?: Data
/**
/**
* Task input data that will be passed to the worker.
*/
readonly data?: Data
/**
- *
UUID of the message
.
+ *
Message UUID
.
*/
readonly id?: string
}
*/
readonly id?: string
}