4 ms·
I use plain old promises by default, but the first time I have to think about which promise results are in scope within nested then() calls, I rewrite it with a
by natrius 10y ago
I use plain old promises by default, but the first time I have to think about which promise results are in scope within nested then() calls, I rewrite it with async/await to eliminate that cognitive load entirely.