Single vs Broadcast Streams
Choose the right stream for many listeners.
Two Kinds of Streams
Dart streams come in two flavors: single-subscription and broadcast. Picking the right one depends on how many listeners you need.
Single-Subscription Streams
A single-subscription stream allows exactly one listener for its lifetime. It is the default and is ideal for a one-time sequence like reading a file. 📄
All lessons in this course
- Listening With await for
- Single vs Broadcast Streams
- Transforming Streams: map, where, take
- Creating Streams With async*