Skip to main content

Async for Darts

Async in Dart is the model for code that waits on slow work such as network calls or file reads without blocking the program. A Future represents one value that arrives later, a Stream delivers many values over time, and the async and await keywords let you write this code in a straight-line style on top of the event loop.

Stage: Async and Errors · Part of the Dart roadmap · Last reviewed 19 November 2026

What to learn in Async

Async interview questions

What is the difference between a Future and a Stream in Dart?

A Future completes once with a single value or an error. A Stream can emit zero or more values over time, then finish. Use a Future for a single HTTP response, and a Stream for things like user events or a sequence of file chunks.

Does await block the thread in Dart?

No. When execution reaches await, the function pauses and control returns to the event loop, which keeps handling other events. Once the Future completes, the function resumes. Dart code on one isolate stays single-threaded, so heavy computation can still freeze it.

Where Async fits in the Dart roadmap

Async belongs to the Async and Errors stage (beginner level). Time and failure.

Back to the full Dart roadmap