nzakas / understandinges6

Content for the ebook "Understanding ECMAScript 6"
5.45k stars 796 forks source link

Clarification in section: Returning Promises in Promise Chains #431

Open sagrawal-idrc opened 5 years ago

sagrawal-idrc commented 5 years ago

URL: https://github.com/nzakas/understandinges6/blob/master/manuscript/11-Promises.md#returning-promises-in-promise-chains

In this section, IMHO, there should be a statement to the effect of:

If the returned value from a promise is another promise, then further execution is suspended until the returned promise is settled. After that, the result of the returned promise is given to the next .then handler.