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

Issue 14136004: Remove StreamController.broadcast. (Closed)

Created:
7 years, 8 months ago by floitsch
Modified:
7 years, 8 months ago
Reviewers:
nweiz, Anders Johnsen
CC:
reviews_dartlang.org, Siggi Cherem (dart-lang)
Visibility:
Public.

Description

Remove StreamController.broadcast. Committed: https://code.google.com/p/dart/source/detail?r=21499

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -113 lines) Patch
M pkg/scheduled_test/lib/src/utils.dart View 1 chunk +5 lines, -4 lines 0 comments Download
M sdk/lib/async/stream_controller.dart View 2 chunks +0 lines, -43 lines 0 comments Download
M tests/lib/async/stream_controller_async_test.dart View 2 chunks +4 lines, -4 lines 0 comments Download
M tests/lib/async/stream_controller_test.dart View 7 chunks +36 lines, -30 lines 0 comments Download
M tests/lib/async/stream_state_helper.dart View 2 chunks +12 lines, -12 lines 0 comments Download
M tests/lib/async/stream_state_nonzero_timer_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tests/lib/async/stream_state_test.dart View 1 chunk +2 lines, -1 line 0 comments Download
M tools/dom/src/KeyboardEventStream.dart View 1 chunk +1 line, -1 line 0 comments Download
M tools/dom/templates/html/impl/impl_Node.darttemplate View 1 chunk +1 line, -1 line 2 comments Download
M tools/dom/templates/html/impl/impl_Window.darttemplate View 1 chunk +1 line, -1 line 2 comments Download
M utils/pub/error_group.dart View 2 chunks +8 lines, -3 lines 0 comments Download
M utils/pub/utils.dart View 1 chunk +5 lines, -4 lines 0 comments Download
M utils/tests/pub/error_group_test.dart View 3 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
floitsch
Attempt to remove Stream.broadcast. It breaks the broadcast state-tests. If necessary I can try to ...
7 years, 8 months ago (2013-04-13 01:08:08 UTC) #1
floitsch
7 years, 8 months ago (2013-04-15 09:39:32 UTC) #2
Anders Johnsen
LGTM https://chromiumcodereview.appspot.com/14136004/diff/1/tools/dom/templates/html/impl/impl_Node.darttemplate File tools/dom/templates/html/impl/impl_Node.darttemplate (right): https://chromiumcodereview.appspot.com/14136004/diff/1/tools/dom/templates/html/impl/impl_Node.darttemplate#newcode344 tools/dom/templates/html/impl/impl_Node.darttemplate:344: return _modelChangedStream.stream; .asBroadcastStream? https://chromiumcodereview.appspot.com/14136004/diff/1/tools/dom/templates/html/impl/impl_Window.darttemplate File tools/dom/templates/html/impl/impl_Window.darttemplate (right): https://chromiumcodereview.appspot.com/14136004/diff/1/tools/dom/templates/html/impl/impl_Window.darttemplate#newcode326 ...
7 years, 8 months ago (2013-04-15 10:22:34 UTC) #3
floitsch
Committed patchset #1 manually as r21499 (presubmit successful).
7 years, 8 months ago (2013-04-15 19:08:41 UTC) #4
floitsch
7 years, 8 months ago (2013-04-15 22:58:11 UTC) #5
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/14136004/diff/1/tools/dom/templates/ht...
File tools/dom/templates/html/impl/impl_Node.darttemplate (right):

https://chromiumcodereview.appspot.com/14136004/diff/1/tools/dom/templates/ht...
tools/dom/templates/html/impl/impl_Node.darttemplate:344: return
_modelChangedStream.stream;
On 2013/04/15 10:22:34, Anders Johnsen wrote:
> .asBroadcastStream?

No. But this is not the correct fix...

https://chromiumcodereview.appspot.com/14136004/diff/1/tools/dom/templates/ht...
File tools/dom/templates/html/impl/impl_Window.darttemplate (right):

https://chromiumcodereview.appspot.com/14136004/diff/1/tools/dom/templates/ht...
tools/dom/templates/html/impl/impl_Window.darttemplate:326: return
controller.stream;
On 2013/04/15 10:22:34, Anders Johnsen wrote:
> .asBroadcastStream?

No. I prefer if HTML controllers are single subscription.

Powered by Google App Engine
This is Rietveld 408576698