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(() => {