From 824d382c0a5e50af47399024b76d7c8919439722 Mon Sep 17 00:00:00 2001 From: Andy Edwards Date: Thu, 24 Jun 2021 17:16:58 -0500 Subject: [PATCH] fix: accidental unhandled rejection --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index bdc1620..a1d1627 100644 --- a/src/index.js +++ b/src/index.js @@ -24,6 +24,7 @@ class Delay { ) this.effect.catch(() => {}) this.ready = lastInvocationDone.then(() => this.effect) + this.ready.catch(() => {}) } flush() {