Re:Asynchronous Everything (2015)
by cout on Sunday June 13, 2021 @11:49PM
(#27499101)
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.
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.