Skip to main content

New site for Dart news and articles

For the latest Dart news, visit our new blog at  https://medium.com/dartlang .

An Important New Article on Working with Streams in Dart


Read Getting Your Feet Wet with Streamsthe latest article at dartlang.org and learn about Streams in Dart.



How do you model values that vary over continuous time? Or deal with events which occur at finite points in time? In the Javascript world, the answer often involves using Functional Reactive Programming (FRP), with frameworks like RxJs, bacon.js and Flapjax providing elegant approaches to traditional event-driven programming. 

In Dart, Streams provide a consistent interface for working with repeating events. Streams are everywhere in Dart! 

In an important new article, Chris Buckett details ways in which you can subscribe to (and unsubscribe from) a Stream. He shows how to transform, validate and consume Stream data, and handle errors using a StreamSubscription.  This article demystifies the subject of Streams: read it if you want to know more about this important topic.


Your feedback really counts. Please join the conversation at the Dart mailing list, and ask questions at Stack Overflow.

Photo credit: http://www.flickr.com/photos/audreyjm529/235458062/