4 ms·
Using then() doesn't pause execution of the callsite function, while await does. Surely that's a relevant difference here? It doesn't seem unreasonable to use
by pavlov 6y ago
Using then() doesn't pause execution of the callsite function, while await does. Surely that's a relevant difference here?
It doesn't seem unreasonable to use then() to express: "Run this anonymous function whenever the async thing completes. Meanwhile let's do this other stuff right now."
- nailer 6y agoBoth codebases can't do anything until `result` has a value.