From 933ea23ceb82e3c092385eea6a20af07b2d01f6f Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Sun, 11 Oct 2020 21:03:38 +0200 Subject: [PATCH] Fix obscure unhandled rejection when calling `.clear()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No tests as I was unable to reproduce this… Fixes #119 --- source/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/index.ts b/source/index.ts index c5bd847..0273b9b 100644 --- a/source/index.ts +++ b/source/index.ts @@ -164,9 +164,14 @@ export default class PQueue