repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: fix dynamic pool busy semantic
[poolifier.git]
/
src
/
pools
/
abstract-pool.ts
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index f904af93183840b89edbf166dd02a61fa7e7ec1d..1e61071c42382e1ccb9d546cb0a035ac6196afe3 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-143,8
+143,10
@@
export abstract class AbstractPool<
/** {@inheritDoc} */
public abstract get type (): PoolType
/** {@inheritDoc} */
public abstract get type (): PoolType
- /** {@inheritDoc} */
- public get numberOfRunningTasks (): number {
+ /**
+ * Number of tasks concurrently running.
+ */
+ private get numberOfRunningTasks (): number {
return this.promiseResponseMap.size
}
return this.promiseResponseMap.size
}
@@
-177,10
+179,13
@@
export abstract class AbstractPool<
)
}
)
}
+ /** {@inheritDoc} */
+ public abstract get full (): boolean
+
/** {@inheritDoc} */
public abstract get busy (): boolean
/** {@inheritDoc} */
public abstract get busy (): boolean
- protected internal
GetBusyStatus
(): boolean {
+ protected internal
Busy
(): boolean {
return (
this.numberOfRunningTasks >= this.numberOfWorkers &&
this.findFreeWorkerKey() === -1
return (
this.numberOfRunningTasks >= this.numberOfWorkers &&
this.findFreeWorkerKey() === -1