Hacker News new | past | comments | ask | show | jobs | submit login

The function passed to the promise is executed synchronously, the call to `then` is always asynchronous.



True, worded that poorly. The resolutions are always executed asynchronously, versus a callback approach where the code receiving the callback can inappropriately and unexpectedly choose to execute the callback synchronously.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: