redux-utilities / redux-promise

FSA-compliant promise middleware for Redux.
MIT License
2.67k stars 120 forks source link

Update example to use correct async function syntax #22

Closed summer4096 closed 6 years ago

summer4096 commented 8 years ago

Async arrow functions are not valid

shinnn commented 8 years ago

Async arrow functions are not valid

That's news to me. Is there any sources?

summer4096 commented 8 years ago

https://jakearchibald.com/2014/es7-async-functions/

https://github.com/tc39/ecmascript-asyncawait/issues/7

knpwrs commented 8 years ago

Now I'm sad. :sob:

Ajedi32 commented 8 years ago

FYI, async arrow functions absolutely do exist. They're mentioned in the spec and work fine in Babel.

The blog post you cited is incorrect about async arrow functions not existing, and the tc39 issue you linked had the OP trying to use await in a synchronous arrow function, not an asynchronous one.