2 ms·
It matters if you're concerned about keeping the size of your JS payload in production to a minimum. In the Babel example, you're looking at multiple times more
by tylerlh 11y ago
It matters if you're concerned about keeping the size of your JS payload in production to a minimum. In the Babel example, you're looking at multiple times more lines per async function compared to promises, plus extra execution via regenerator when compiled to ES5.
That said, I'm a fan of async/await -- just not yet for projects where I need to optimize for filesize.