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
Since async functions have been introduced to Javascript, I find it difficult to use libraries that resort to passing callback functions as arguments, as callbacks are an inferior syntax that cause stacking, and await introduces performance optimizations for Javascript engines.
I suggest if a callback function is not passed into any of the API calls, return a promise that resolve or rejects with the result. This way, the API is being expanded and doesn't introduce any breaking changes.
Since async functions have been introduced to Javascript, I find it difficult to use libraries that resort to passing callback functions as arguments, as callbacks are an inferior syntax that cause stacking, and await introduces performance optimizations for Javascript engines.
I suggest if a callback function is not passed into any of the API calls, return a promise that resolve or rejects with the result. This way, the API is being expanded and doesn't introduce any breaking changes.
e.g.
The text was updated successfully, but these errors were encountered: