repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: sync worker choice context constructor comment
[poolifier.git]
/
src
/
pools
/
cluster
/
dynamic.ts
diff --git
a/src/pools/cluster/dynamic.ts
b/src/pools/cluster/dynamic.ts
index 79f684cbd39a2990f0b7f968e41cf7dda9d70569..b84a80ce2b31b7fc807bceae6b29e1a7eb2af5bd 100644
(file)
--- a/
src/pools/cluster/dynamic.ts
+++ b/
src/pools/cluster/dynamic.ts
@@
-27,24
+27,24
@@
export class DynamicClusterPool<
*/
public constructor (
min: number,
*/
public constructor (
min: number,
- p
rivate
readonly max: number,
+ p
ublic
readonly max: number,
filePath: string,
opts: ClusterPoolOptions = {}
) {
super(min, filePath, opts)
}
filePath: string,
opts: ClusterPoolOptions = {}
) {
super(min, filePath, opts)
}
- /**
{@inheritDoc}
*/
+ /**
@inheritDoc
*/
public get type (): PoolType {
return PoolType.DYNAMIC
}
public get type (): PoolType {
return PoolType.DYNAMIC
}
- /**
{@inheritDoc}
*/
+ /**
@inheritDoc
*/
public get full (): boolean {
return this.workers.length === this.max
}
public get full (): boolean {
return this.workers.length === this.max
}
- /**
{@inheritDoc}
*/
+ /**
@inheritDoc
*/
public get busy (): boolean {
return this.full && this.findFreeWorkerKey() === -1
}
public get busy (): boolean {
return this.full && this.findFreeWorkerKey() === -1
}