intermediatetermWeb foundationsWeb foundations / Async and promises
IntermediateNot yet reviewed

Async and promises

Some work, like fetching data, takes time.

Definition

Some work, like fetching data, takes time. A promise represents a result that will arrive later, and async and await let you write code that waits for it.

Use case

Loading, success and error states exist because data arrives later. Async code is what moves a screen from one to the next.

Related terms

Resources

No resources yet. Suggest one.

Suggest a change