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

Unified Diff: sdk/lib/async/stream.dart

Issue 12088069: Remove Stream.cyclic/superceding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/async/merge_stream.dart ('k') | tests/lib/async/merge_stream_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/stream.dart
diff --git a/sdk/lib/async/stream.dart b/sdk/lib/async/stream.dart
index 375f493ff5a7f92e26a0eaca7b67317decc60ce3..76f43eae6bb8ee981f22328220b54410ca677346 100644
--- a/sdk/lib/async/stream.dart
+++ b/sdk/lib/async/stream.dart
@@ -97,33 +97,6 @@ abstract class Stream<T> {
}
/**
- * Stream that outputs events from the [sources] in cyclic order.
- *
- * The merged streams are paused and resumed in order to ensure the proper
- * order of output events.
- */
- factory Stream.cyclic(Iterable<Stream> sources) {
- return new _CyclicScheduleStream<T>(sources);
- }
-
- /**
- * Create a stream that forwards data from the highest priority active source.
- *
- * Sources are provided in order of increasing priority, and only data from
- * the highest priority source stream that has provided data are output
- * on the created stream.
- *
- * Errors from the most recent active stream, and any higher priority stream,
- * are forwarded to the created stream.
- *
- * If a higher priority source stream completes without providing data,
- * it will have no effect on lower priority streams.
- */
- factory Stream.superceding(Iterable<Stream<T>> sources) {
- return new _SupercedeStream<T>(sources);
- }
-
- /**
* Add a subscription to this stream.
*
* On each data event from this stream, the subscribers [onData] handler
@@ -196,7 +169,7 @@ abstract class Stream<T> {
/**
* Bind this stream as the input of the provided [StreamConsumer].
*/
- Future pipe(StreamConsumer<dynamic, T> streamConsumer) {
+ Future pipe(StreamConsumer<T, dynamic> streamConsumer) {
return streamConsumer.consume(this);
}
« no previous file with comments | « sdk/lib/async/merge_stream.dart ('k') | tests/lib/async/merge_stream_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698