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..3e7c3427e84f7bedb015e8f6d7ef54215377bd40 100644
(file)
--- a/
src/pools/selection-strategies/selection-strategies-types.ts
+++ b/
src/pools/selection-strategies/selection-strategies-types.ts
@@
-30,14
+30,14
@@
export type WorkerChoiceStrategy = keyof typeof WorkerChoiceStrategies
/**
* Pool tasks usage statistics requirements.
*/
/**
* Pool tasks usage statistics requirements.
*/
-export
type RequiredStatistics =
{
+export
interface RequiredStatistics
{
runTime: boolean
}
/**
* Worker choice strategy interface.
*
runTime: boolean
}
/**
* Worker choice strategy interface.
*
- * @t
emplate Worker
Type of worker which manages the strategy.
+ * @t
ypeParam Worker -
Type of worker which manages the strategy.
*/
export interface IWorkerChoiceStrategy<Worker extends IPoolWorker> {
/**
*/
export interface IWorkerChoiceStrategy<Worker extends IPoolWorker> {
/**
@@
-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
}
}