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
In node there is the convention that callbacks should be the last parameter of an function.
with that in mind, it would be possible to create a short await which translates:
await { foo.bar(100,defer ()); }
to:
await foo.bar(100);
It would think that it is also possible to detect which variables are used behind the await and pass them automatically to defer. That would make the whole pattern a lot more readable.
The text was updated successfully, but these errors were encountered:
In node there is the convention that callbacks should be the last parameter of an function.
with that in mind, it would be possible to create a short await which translates:
await { foo.bar(100,defer ()); }
to:
await foo.bar(100);
It would think that it is also possible to detect which variables are used behind the await and pass them automatically to defer. That would make the whole pattern a lot more readable.
The text was updated successfully, but these errors were encountered: