3 ms·
I would also like awaiting to be the default, as I've been bitten more than a few times by forgetting to await. It's tricky though -- if I assign the result of
by cout 5y ago
I would also like awaiting to be the default, as I've been bitten more than a few times by forgetting to await.
It's tricky though -- if I assign the result of a function to a variable, should I immediately await? What if I'm creating a temporary to pass into Promise.all or Promise.race? Perhaps not-awaiting needs to be explicit? I'm not sure.
- slver 5y agoYes “async foo()” call would be gathering promises without waiting.