DEV Community

Discussion on: JavaScript: Promises and Why Async/Await Wins the Battle

Collapse
 
jswhisperer profile image
Greg, The JavaScript Whisperer

I'm wondering is async await actually slower? My understanding is it's not you write it like synchronous code but it is still async, with babel it's converted to generator functions that don't block the event loop. Without babel I still think it is non blocking.
Also neat trick I use is await fetch().catch(e => console.log(e)) you can catch them inline also.