fix: fix code examples
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Sep 2023 18:55:57 +0000 (20:55 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Sep 2023 18:55:57 +0000 (20:55 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
examples/javascript/multiFunctionExample.js

index 27a503256b776d163b29ad7a64a0a8d425ebf6c1..9667be3d090d0ba3c735af22d2afc4fb69ca0854 100644 (file)
@@ -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)