From 9dadc18fa58ad04428977d9bfdb61645e425b2cd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 27 Sep 2023 20:55:57 +0200 Subject: [PATCH] fix: fix code examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- examples/javascript/multiFunctionExample.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1