3 ms·
Promise added a very valuable new capability, but this would just mean what you write doesn't work on any non updated browser for a very minor syntax improvemen
by CyberDildonics 4y ago
Promise added a very valuable new capability, but this would just mean what you write doesn't work on any non updated browser for a very minor syntax improvement.
If there are too many nested calls, assign some of the function results to variables first.
- qbasic_forever 4y agoAsync/await is pure syntactic sugar. Look at python 3.0 era coroutines that were iterator/generator based as an example of async coding without special keywords. JS did not need those keywords to enable coroutines and async coding. People were already making their own promises, coroutines, etc. long before the new keywords were added.
- schwartzworld 4y agoAsync await has been supported by every browser that's not IE for like 6 years, and it's easily polyfillable if you need to support earlier.