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

Side by Side Diff: sdk/lib/async/stream_controller.dart

Issue 2529393002: Make core libraries use generic method syntax. (Closed)
Patch Set: Update status files. Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | sdk/lib/async/stream_impl.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.async; 5 part of dart.async;
6 6
7 // ------------------------------------------------------------------- 7 // -------------------------------------------------------------------
8 // Controller for creating and adding events to a stream. 8 // Controller for creating and adding events to a stream.
9 // ------------------------------------------------------------------- 9 // -------------------------------------------------------------------
10 10
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 } 773 }
774 774
775 void _sendDone() { 775 void _sendDone() {
776 _subscription._close(); 776 _subscription._close();
777 } 777 }
778 } 778 }
779 779
780 abstract class _AsyncStreamControllerDispatch<T> 780 abstract class _AsyncStreamControllerDispatch<T>
781 implements _StreamController<T> { 781 implements _StreamController<T> {
782 void _sendData(T data) { 782 void _sendData(T data) {
783 _subscription._addPending(new _DelayedData<dynamic /*=T*/>(data)); 783 _subscription._addPending(new _DelayedData<T>(data));
784 } 784 }
785 785
786 void _sendError(Object error, StackTrace stackTrace) { 786 void _sendError(Object error, StackTrace stackTrace) {
787 _subscription._addPending(new _DelayedError(error, stackTrace)); 787 _subscription._addPending(new _DelayedError(error, stackTrace));
788 } 788 }
789 789
790 void _sendDone() { 790 void _sendDone() {
791 _subscription._addPending(const _DelayedDone()); 791 _subscription._addPending(const _DelayedDone());
792 } 792 }
793 } 793 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
939 _StreamControllerAddStreamState(_StreamController<T> controller, 939 _StreamControllerAddStreamState(_StreamController<T> controller,
940 this.varData, 940 this.varData,
941 Stream source, 941 Stream source,
942 bool cancelOnError) 942 bool cancelOnError)
943 : super(controller, source, cancelOnError) { 943 : super(controller, source, cancelOnError) {
944 if (controller.isPaused) { 944 if (controller.isPaused) {
945 addSubscription.pause(); 945 addSubscription.pause();
946 } 946 }
947 } 947 }
948 } 948 }
OLDNEW
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | sdk/lib/async/stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698