Fix syntax error

Fortune for async-timeout-js's current commit: Middle blessing − 中吉
allow-await-async-timeout-func
Avril 3 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); } } catch(e) { reject(e); }
}, interval); }, interval);
}); });
this.interval = async function*() => { this.interval = async function*() {
while(true) { while(true) {
yield await new Promise((resolve, reject) => { yield await new Promise((resolve, reject) => {
setTimeout(() => { setTimeout(() => {

Loading…
Cancel
Save