Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Issue 17490002: Make asBroadcastStream take two callbacks. (Closed)

Created:
7 years, 6 months ago by Lasse Reichstein Nielsen
Modified:
7 years, 5 months ago
Reviewers:
floitsch
CC:
reviews_dartlang.org
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address comments by removing problem. #

Patch Set 3 : Reintroduce zone. #

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

Messages

Total messages: 4 (0 generated)
Lasse Reichstein Nielsen
7 years, 6 months ago (2013-06-20 09:24:14 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/17490002/diff/1/sdk/lib/async/stream_impl.dart File sdk/lib/async/stream_impl.dart (right): https://codereview.chromium.org/17490002/diff/1/sdk/lib/async/stream_impl.dart#newcode737 sdk/lib/async/stream_impl.dart:737: _zone.executeCallback(() { I'm not sure if these should ...
7 years, 6 months ago (2013-06-20 14:28:30 UTC) #2
Lasse Reichstein Nielsen
PTAL https://codereview.chromium.org/17490002/diff/1/sdk/lib/async/stream_impl.dart File sdk/lib/async/stream_impl.dart (right): https://codereview.chromium.org/17490002/diff/1/sdk/lib/async/stream_impl.dart#newcode737 sdk/lib/async/stream_impl.dart:737: _zone.executeCallback(() { Zone has been removed from the ...
7 years, 6 months ago (2013-06-21 09:49:11 UTC) #3
Lasse Reichstein Nielsen
7 years, 5 months ago (2013-07-04 13:02:15 UTC) #4
Message was sent while issue was closed.
Committed patchset #3 manually as r24776 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698