# Promise chain

Concept · [Technical basics](https://ecosystem.samcarlton.com/technical)

Also called: promise chains, promises, then chain, async await

A way of [writing code](https://ecosystem.samcarlton.com/code) for steps that take time, such as network requests, so each step starts when the one before it finishes.

**For example:** Code fetches a user, then their orders, then the [shipping](https://ecosystem.samcarlton.com/deployment) status, each in turn, as one promise chain.

## Connects to (3)

- [Function coloring](https://ecosystem.samcarlton.com/function-coloring): A nickname for a problem in many programming languages: functions that wait on slow work (async) and functions that do not cannot be mixed…
- [Code](https://ecosystem.samcarlton.com/code): Exact written instructions that tell a computer what to do, step by step.
- [API](https://ecosystem.samcarlton.com/terms/api): Application programming interface.

Map view: https://ecosystem.samcarlton.com/promise-chain
