3 ms·
Async/await is just syntax-sugar around Promises. No busy loops involved. (Those generally don't work in Javascript anyway.)
by AgentME 10y ago
Async/await is just syntax-sugar around Promises. No busy loops involved. (Those generally don't work in Javascript anyway.)
- BinaryIdiot 10y agoThis overlooks Promises needing to be polyfilled. Though that's certainly not using busy loops either (though most of what I've seen overlooks more performant setTimeout(fn, 0) alternatives which is unfortunate).
- AgentME 10y agoAsync/await already needs to be transpiled in for most browsers, so Promises needing to be polyfilled seems like the least of your problems.