Promises are a great way to deal with asynchronous calls, and now with async await things are getting even easier, but if the functions don't return a promise, we have to patch them in order to use the new developments of the language. So, will functions like readFile return a promise eventually or will be created counterparts like the sync functions to eliminate the need to convert the function using, for example, bluebird's Promise.promisifyAll?
Submitted March 12, 2017 at 09:52PM by Lakelava
No comments:
Post a Comment