3 ms·
I noticed this as well. On the other hand, even though the example the author provided could be substantially simplified as you showed, if you wanted to later o
by djokkataja 10y ago
I noticed this as well. On the other hand, even though the example the author provided could be substantially simplified as you showed, if you wanted to later on refactor the `getUsers` function again to add more logic, your promises code would end up more and more contorted. In practice I've found `await` and `async` to hugely simplify these kinds of complex promises.
- spion 10y agoI have the opposite experience of that. Generally function-based promise code is just about the same as async/await. It does take some time to get used to all the equivalencies between imperative code and promises though.