From 5306aa0ffe68495b13d10d32bbfce5c1e3c4a4ef Mon Sep 17 00:00:00 2001 From: andrew0 <739172+andrew0@users.noreply.github.com> Date: Mon, 17 Jan 2022 17:33:02 -0500 Subject: [PATCH] fix: unref timeout --- src/delay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/delay.js b/src/delay.js index 8246831c..abc8f864 100644 --- a/src/delay.js +++ b/src/delay.js @@ -1,3 +1,3 @@ module.exports = function delay(time) { - return new Promise(resolve => setTimeout(() => resolve(), time)); + return new Promise(resolve => setTimeout(() => resolve(), time).unref()); };