X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=lib%2Ffixed.js;h=676947725bed0bb65fe72fe949be8652b08f39c5;hb=1f9a5a440caea7dc60a664d413304250969bb4d8;hp=8d899d57bb4ed00a54e4d1a1f2093641d8bd3f77;hpb=522eea0367c1381247471bc4393ae9c9de398120;p=poolifier.git diff --git a/lib/fixed.js b/lib/fixed.js index 8d899d57..67694772 100644 --- a/lib/fixed.js +++ b/lib/fixed.js @@ -34,9 +34,9 @@ class FixedThreadPool { } } - destroy () { + async destroy () { for (const worker of this.workers) { - worker.terminate() + await worker.terminate() } }