repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf: use a single array to store pool workers and their related data
[poolifier.git]
/
src
/
pools
/
thread
/
dynamic.ts
diff --git
a/src/pools/thread/dynamic.ts
b/src/pools/thread/dynamic.ts
index d5be43f189f469b46ce16ef9bcdbf4720e33b593..19cb9fbf6b9a21a649c9fe548955e62abc6c750f 100644
(file)
--- a/
src/pools/thread/dynamic.ts
+++ b/
src/pools/thread/dynamic.ts
@@
-42,6
+42,6
@@
export class DynamicThreadPool<
/** {@inheritDoc} */
public get busy (): boolean {
- return this.workers.
size
=== this.max
+ return this.workers.
length
=== this.max
}
}