|
Make asBroadcastStream take two callbacks.
These callbacks will be called when the broadcast stream no longer
has any listeners, or when it gets a listener after having none.
The callback is provided with a StreamSubscription-like object where
it can pause/resume/cancel the underlying subscription on the original
stream.
BUG=http://dartbug.com/11289
R=floitsch@google.com
Committed: https://code.google.com/p/dart/source/detail?r=24776
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+449 lines, -112 lines) |
Patch |
 |
M |
pkg/logging/lib/logging.dart
|
View
|
1
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
pkg/scheduled_test/lib/src/utils.dart
|
View
|
|
1 chunk |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
samples/swarm/swarm_ui_lib/touch/Scroller.dart
|
View
|
|
1 chunk |
+10 lines, -10 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/error_group.dart
|
View
|
|
3 chunks |
+4 lines, -9 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/lib/src/utils.dart
|
View
|
|
1 chunk |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/_internal/pub/test/error_group_test.dart
|
View
|
|
3 chunks |
+8 lines, -8 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/async/stream.dart
|
View
|
|
2 chunks |
+24 lines, -6 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/async/stream_controller.dart
|
View
|
|
1 chunk |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/async/stream_impl.dart
|
View
|
1
2
|
3 chunks |
+127 lines, -3 lines |
0 comments
|
Download
|
 |
M |
sdk/lib/html/dart2js/html_dart2js.dart
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
sdk/lib/html/dartium/html_dartium.dart
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
tests/lib/async/stream_controller_async_test.dart
|
View
|
|
10 chunks |
+78 lines, -7 lines |
0 comments
|
Download
|
 |
M |
tests/lib/async/stream_controller_test.dart
|
View
|
|
1 chunk |
+0 lines, -3 lines |
0 comments
|
Download
|
 |
M |
tests/lib/async/stream_state_helper.dart
|
View
|
|
10 chunks |
+121 lines, -12 lines |
0 comments
|
Download
|
 |
M |
tests/lib/async/stream_state_nonzero_timer_test.dart
|
View
|
|
5 chunks |
+15 lines, -17 lines |
0 comments
|
Download
|
 |
M |
tests/lib/async/stream_state_test.dart
|
View
|
|
3 chunks |
+43 lines, -21 lines |
0 comments
|
Download
|
 |
M |
tools/dom/src/EventStreamProvider.dart
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|