Closed lucaswerkmeister closed 6 years ago
Hello Lukas,
I'm glad this library works for you!
You are right. Since Node.js has proper async/await support, there's really no reason not to use the new syntax for it in almost all use cases.
I'll add your example to the documentation, thanks!
Cool, thank you!
Thanks for creating this library! I used it to write a command-line version of the namescript user script and found it quite pleasant to work with :)
One thing that I think could be helpful: examples on how to use the library with
async
/await
syntax instead of chaining.then
calls. Since Bluebird promises (or any other Promises/A+ promises) are fully compatible with ES6 promises, this works out quite well, and I found it to be a very pleasant style of programming:Do you think it would be worth adding such examples? I could try to adapt some of the existing examples if you’re okay with it.