Using async results in a Promise chain

In the previous recipe, we saw how to use async and await to replace portions of the Promise API. However, there will still be cases where it is preferable to use the Promise API, either for clarity, structure, or incremental replacement.

In this recipe, we'll see how the async functions integrate seamlessly into Promise chains.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.119.235.99