From: Jérôme Benoit Date: Wed, 27 Sep 2023 18:55:57 +0000 (+0200) Subject: fix: fix code examples X-Git-Tag: v2.7.5~31 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9dadc18fa58ad04428977d9bfdb61645e425b2cd;p=poolifier.git fix: fix code examples Signed-off-by: Jérôme Benoit --- diff --git a/examples/javascript/multiFunctionExample.js b/examples/javascript/multiFunctionExample.js index 27a50325..9667be3d 100644 --- a/examples/javascript/multiFunctionExample.js +++ b/examples/javascript/multiFunctionExample.js @@ -19,4 +19,4 @@ pool .then(res => console.info(res)) .catch(err => console.error(err)) -setTimeout(pool.destroy(), 3000) +setTimeout(async () => await pool.destroy(), 3000)