Skip to content

Commit

Permalink
Add links to API docs in a findable place
Browse files Browse the repository at this point in the history
R=sethladd@google.com

Review URL: https://chromiumcodereview.appspot.com/135193002
  • Loading branch information
kwalrath committed Jan 11, 2014
1 parent 181c04d commit 77f7f00
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/site/articles/broadcast-streams/index.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,7 @@ First, and most importantly, with a single-subscription stream
it's extremely obvious
when the stream should produce events,
and when it should stop doing so.
Second, and more annoyingly, many
[Stream](http://api.dartlang.org/dart_async/Stream.html)
Second, and more annoyingly, many Stream
getters and methods are less useful
for single-subscription streams.
For example, just using the `isNotEmpty` getter
Expand Down Expand Up @@ -412,8 +411,7 @@ but some abstractions
(or using methods instead of anonymous closures)
can easily get rid of them.
A popular abstraction is, for example, a state machine.
Another one is the
[StreamIterator](http://api.dartlang.org/dart_async/StreamIterator.html) class.
Another one is the StreamIterator class.

### StreamIterator

Expand Down Expand Up @@ -477,6 +475,12 @@ can lead to resource leaks.
Consider safer alternatives such as
listener swapping and StreamIterators.

For more information, see the API documentation:

* [Stream](http://api.dartlang.org/dart_async/Stream.html)
* [StreamSubscription](http://api.dartlang.org/dart_async/StreamSubscription.html)
* [StreamIterator](http://api.dartlang.org/dart_async/StreamIterator.html)

_Thanks to Lasse Reichstein Holst Nielsen, Anders Johnsen,
and Kathy Walrath for their suggestions and help to improve this article._

0 comments on commit 77f7f00

Please sign in to comment.