DEV Community

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

Collapse
 
daanwilmer profile image
Daan Wilmer

One thing to note: async functions are supported by only 85% of used browsers (according to caniuse.com/#feat=async-functions). This can be acceptible in some cases, but not all.

Promises, however, are supported by 90% of browsers and you can add a polyfill — syntactically speaking, it's just an object. As long as it's there it's fine, whether provided by the browser or the polyfill. Async functions, however, are a syntax feature, which makes a polyfill impossible.

How many people do you want to reach?