repositories
/
poolifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7654578
)
perf: optimize pool shutdown
author
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 10 Apr 2023 03:59:53 +0000
(
05:59
+0200)
committer
Jérôme Benoit
<jerome.benoit@sap.com>
Mon, 10 Apr 2023 03:59:53 +0000
(
05:59
+0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/pools/abstract-pool.ts
patch
|
blob
|
blame
|
history
diff --git
a/src/pools/abstract-pool.ts
b/src/pools/abstract-pool.ts
index 6548eba30189c2491bc244eb6e7e168b395b14f0..661eb7b6ec363c228ad0c540f43b44361b76e75e 100644
(file)
--- a/
src/pools/abstract-pool.ts
+++ b/
src/pools/abstract-pool.ts
@@
-258,8
+258,8
@@
export abstract class AbstractPool<
/** @inheritDoc */
public async destroy (): Promise<void> {
await Promise.all(
- this.workerNodes.map(async
workerNode
=> {
- this.flushTasksQueue
ByWorker(workerNode.worker
)
+ this.workerNodes.map(async
(workerNode, workerNodeKey)
=> {
+ this.flushTasksQueue
(workerNodeKey
)
await this.destroyWorker(workerNode.worker)
})
)