6 ms·
Why are you having to bring in libraries to use async/await? What does the native implementation not provide?
by dbbk 9y ago
Why are you having to bring in libraries to use async/await? What does the native implementation not provide?
- rcarmo 9y agoI'm not bringing in libraries. I'm trying to put together a set of libraries that work well with async for my purposes (custom net I/O, databases, etc.) without having to wrap them or fiddle with resolving promises on my own.
- epicide 9y agoIs there something in particular that you do not like about Promises?
- rcarmo 9y agoYeah, having to deal with inconsistency across libraries inside the same project.
- epicide 9y agoI don't really see how Promises leads to that... do you mean the fact that not all libraries support them out of the box? Bluebird (probably my favorite Promises implementation) has nice features to interface pretty easily between callbacks and Promises.