From: Jérôme Benoit Date: Sun, 23 Jul 2023 14:23:17 +0000 (+0200) Subject: refactor: cleanup examples X-Git-Tag: v2.6.21~36 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=670ede1cd02d1934860757fc7ea28ed0e963f6cc;p=poolifier.git refactor: cleanup examples Signed-off-by: Jérôme Benoit --- diff --git a/examples/dynamicExample.js b/examples/dynamicExample.js index b8cbf49a..ad79ba20 100644 --- a/examples/dynamicExample.js +++ b/examples/dynamicExample.js @@ -1,3 +1,4 @@ +'use strict' const { DynamicThreadPool, PoolEvents, diff --git a/examples/fixedExample.js b/examples/fixedExample.js index 21ccf6c1..1f5ac4ea 100644 --- a/examples/fixedExample.js +++ b/examples/fixedExample.js @@ -1,3 +1,4 @@ +'use strict' const { FixedThreadPool, PoolEvents, diff --git a/examples/multiFunctionExample.js b/examples/multiFunctionExample.js index 829ba93d..27a50325 100644 --- a/examples/multiFunctionExample.js +++ b/examples/multiFunctionExample.js @@ -1,3 +1,4 @@ +'use strict' const { FixedThreadPool, availableParallelism } = require('poolifier') const pool = new FixedThreadPool(