repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
docs: comment cleanup
[poolifier.git]
/
src
/
pools
/
cluster
/
dynamic.ts
diff --git
a/src/pools/cluster/dynamic.ts
b/src/pools/cluster/dynamic.ts
index 79f684cbd39a2990f0b7f968e41cf7dda9d70569..9f9abb01ddaa5f3015ef4a08bd2ee046dc9312c9 100644
(file)
--- a/
src/pools/cluster/dynamic.ts
+++ b/
src/pools/cluster/dynamic.ts
@@
-27,25
+27,25
@@
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 {
public get full (): boolean {
- return this.workers.length === this.max
+ return this.worker
Node
s.length === this.max
}
}
- /**
{@inheritDoc}
*/
+ /**
@inheritDoc
*/
public get busy (): boolean {
public get busy (): boolean {
- return this.full && this.findFreeWorkerKey() === -1
+ return this.full && this.findFreeWorker
Node
Key() === -1
}
}
}
}