Module 13 · Async 2: Promises, async/await and fetch
Every Promise Method, One by One, With What It Returns
Free with an accountReading
Kenji builds the home page of a food delivery app. The page needs three things from the server: the user's name, the open restaurants and the running offers. Each request is a promise. Kenji's first version waits for them one after another, and the page feels slow.
Checking what this lesson needs for you…
What is inside Every Promise Method, One by One, With What It Returns
- new Promise and the executor
- then and what it returns
- catch
- finally
- Promise.resolve and Promise.reject
- Promise.all
- Promise.allSettled
- Promise.race
- Promise.any
- Promise.withResolvers (ES2024)
- async functions always return a promise
- await
- try and catch around await
- Sequential against parallel
- Which combinator