You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To ensure that all async user-provided functions can use either a callback or a promise, a utility method should be created that normalizes everything into returning a promise. It'll simplify the code.
We may also want to consider using Babel's async/await to further simplify the code.
I agree with standardizing it. Additionally, it would be good to consistently permit an optional sync response as well (simply by the user not passing in a callback to the method).
However, isn't async/await ES7 experimental? Not sure I want to get into that.
To ensure that all async user-provided functions can use either a callback or a promise, a utility method should be created that normalizes everything into returning a promise. It'll simplify the code.
We may also want to consider using Babel's async/await to further simplify the code.
@dthree Thoughts?
The text was updated successfully, but these errors were encountered: