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

Unified Diff: samples/swarm/swarm_ui_lib/touch/Scroller.dart

Issue 16125005: Make new StreamController be async by default. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review comments Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: samples/swarm/swarm_ui_lib/touch/Scroller.dart
diff --git a/samples/swarm/swarm_ui_lib/touch/Scroller.dart b/samples/swarm/swarm_ui_lib/touch/Scroller.dart
index 9f98103d3f4ad8d27f9c71a0b958d840f0589d44..96b96db0cef4516ccb01b06c617a5671f7484df7 100644
--- a/samples/swarm/swarm_ui_lib/touch/Scroller.dart
+++ b/samples/swarm/swarm_ui_lib/touch/Scroller.dart
@@ -246,7 +246,7 @@ class Scroller implements Draggable, MomentumDelegate {
Stream<Event> get onScrollerStart {
if (_onScrollerStart == null) {
- _onScrollerStart = new StreamController<Event>();
+ _onScrollerStart = new StreamController<Event>(sync: true);
_onScrollerStartStream = _onScrollerStart.stream.asBroadcastStream();
}
return _onScrollerStartStream;
@@ -254,7 +254,7 @@ class Scroller implements Draggable, MomentumDelegate {
Stream<Event> get onScrollerEnd {
if (_onScrollerEnd == null) {
- _onScrollerEnd = new StreamController<Event>();
+ _onScrollerEnd = new StreamController<Event>(sync: true);
_onScrollerEndStream = _onScrollerEnd.stream.asBroadcastStream();
}
return _onScrollerEndStream;
@@ -262,7 +262,7 @@ class Scroller implements Draggable, MomentumDelegate {
Stream<Event> get onScrollerDragEnd {
if (_onScrollerDragEnd == null) {
- _onScrollerDragEnd = new StreamController<Event>();
+ _onScrollerDragEnd = new StreamController<Event>(sync: true);
_onScrollerDragEndStream = _onScrollerDragEnd.stream.asBroadcastStream();
}
return _onScrollerDragEndStream;
@@ -270,7 +270,7 @@ class Scroller implements Draggable, MomentumDelegate {
Stream<Event> get onContentMoved {
if (_onContentMoved == null) {
- _onContentMoved = new StreamController<Event>();
+ _onContentMoved = new StreamController<Event>(sync: true);
_onContentMovedStream = _onContentMoved.stream.asBroadcastStream();
}
return _onContentMovedStream;
@@ -278,7 +278,7 @@ class Scroller implements Draggable, MomentumDelegate {
Stream<Event> get onDecelStart {
if (_onDecelStart == null) {
- _onDecelStart = new StreamController<Event>();
+ _onDecelStart = new StreamController<Event>(sync: true);
_onDecelStartStream = _onDecelStart.stream.asBroadcastStream();
}
return _onDecelStartStream;
« no previous file with comments | « runtime/bin/socket_patch.dart ('k') | sdk/lib/_internal/compiler/implementation/dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698