Module 13 · Async 2: Promises, async/await and fetch
Full Programs: A Fetcher, a Timeout, a Retry, a Progress Loader and a Pool
Free with an accountReading
The last two lessons showed each method on its own. Real code combines them. A page that loads data needs a timeout, because servers hang. It needs a retry, because networks drop. It needs a progress report, because people wait. And it needs a limit, because a server refuses a thousand requests at once.
Checking what this lesson needs for you…
What is inside Full Programs: A Fetcher, a Timeout, a Retry, a Progress Loader and a Pool
- The fetch every program here shares
- Three requests in a row
- The same three, together
- A timeout with race
- A retry with backoff
- A progress loader with allSettled
- A pool that runs k at a time
- One promise for many callers