repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Apply dependencies update
[poolifier.git]
/
src
/
pools
/
selection-strategies
/
selection-strategies-types.ts
diff --git
a/src/pools/selection-strategies/selection-strategies-types.ts
b/src/pools/selection-strategies/selection-strategies-types.ts
index 499b8e489e744a3fad453391b8e4e664c90eac94..21e4129eeca6d9e09619647ab7b80abbd299032c 100644
(file)
--- a/
src/pools/selection-strategies/selection-strategies-types.ts
+++ b/
src/pools/selection-strategies/selection-strategies-types.ts
@@
-30,7
+30,7
@@
export type WorkerChoiceStrategy = keyof typeof WorkerChoiceStrategies
/**
* Pool tasks usage statistics requirements.
*/
/**
* Pool tasks usage statistics requirements.
*/
-export
type RequiredStatistics =
{
+export
interface RequiredStatistics
{
runTime: boolean
}
runTime: boolean
}
@@
-51,9
+51,9
@@
export interface IWorkerChoiceStrategy<Worker extends IPoolWorker> {
/**
* Resets strategy internals (counters, statistics, etc.).
*/
/**
* Resets strategy internals (counters, statistics, etc.).
*/
- reset
():
boolean
+ reset
: () =>
boolean
/**
* Chooses a worker in the pool.
*/
/**
* Chooses a worker in the pool.
*/
- choose
():
Worker
+ choose
: () =>
Worker
}
}