From e58db0b0b99d038094c8087c2457c30dcf2c3b6c Mon Sep 17 00:00:00 2001 From: Avril Date: Sat, 12 Feb 2022 15:53:32 +0000 Subject: [PATCH] Fix syntax error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fortune for async-timeout-js's current commit: Middle blessing − 中吉 --- asynctimeout.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asynctimeout.js b/asynctimeout.js index 401e42b..ced4eea 100644 --- a/asynctimeout.js +++ b/asynctimeout.js @@ -33,7 +33,7 @@ function AsyncTimeout(thing, interval) } catch(e) { reject(e); } }, interval); }); - this.interval = async function*() => { + this.interval = async function*() { while(true) { yield await new Promise((resolve, reject) => { setTimeout(() => {