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.