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
If we do a wrapper for all domain and lib functions that will force us to use async/await syntax everywhere. Should we wrap all functions to thenable in our case (similar wrapper Procedure has been done for api)?
How are we supposed to keep some function unwrapped with this syntax?
Thenable is not a Promise. How we are supposed to distinguish thenable and promise?
Example:
We have sync function here let it be lib/array/timesTen.js
(array)=>array.map((el)=>el*10)
If I want to just invoke this function inside my code that will look like this:
New syntax:
The text was updated successfully, but these errors were encountered: