7 ms·
Yea but when using promises with async/await its very beautiful. await asyncFuncOne(); await asyncFuncTwo(); No more weird water-falling, and finally
by chadscira 10y ago
Yea but when using promises with async/await its very beautiful.
await asyncFuncOne();
await asyncFuncTwo();
No more weird water-falling, and finally proper exception handling. The only gotcha is the fact that we cant awaits at the root of a module, and we need to wrap it in a async function.
- wildpeaks 10y agoThe 250Kb extra weight to the Babel bundles (compared to the equivalent callback version) is quite frustrating though.