Open 2zH opened 7 years ago
Promise iterable functions:
const wait = () => new Promise((resolve) => ( window.setTimeout(resolve, delay) )) this.actionMapper.reduce((result, fn) => ( result .then(wait) .then(fn) ), Promise.resolve())
Too much setTimeout, that's bad. :(
Promise iterable functions: