3 ms·
I think it's nice to have both options. I prefer the functional style of chaining promises for the most part, but there are definitely a few times when await is
by dvlsg 10y ago
I think it's nice to have both options. I prefer the functional style of chaining promises for the most part, but there are definitely a few times when await is easier to use IMO (awaiting inside of a loop, for example).