Fix syntax error

Fortune for async-timeout-js's current commit: Middle blessing − 中吉
allow-await-async-timeout-func
Avril 2 years ago
parent e01d0d8534
commit e58db0b0b9
Signed by: flanchan
GPG Key ID: 284488987C31F630

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

Loading…
Cancel
Save