4 ms·
Should mention that Bluebird does this. http://bluebirdjs.com/docs/api/delay.html http://bluebirdjs.com/docs/api/delay.html
by saas_co_de 9y ago
Should mention that Bluebird does this.
http://bluebirdjs.com/docs/api/delay.html http://bluebirdjs.com/docs/api/delay.html
- iEchoic 9y agoYup, Bluebird has allowed for: await Promise.delay(1000); For as long as I can remember. I'm surprised Bluebird isn't more widely-adopted; it's been way better than native promises for at least 2 years now. The transform-async-to-module-method plugin with Bluebird is the way to go.