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

Unified Diff: lib/src/lazy_stream.dart

Issue 2660333005: Change generic comment syntax to real generic syntax. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: lib/src/lazy_stream.dart
diff --git a/lib/src/lazy_stream.dart b/lib/src/lazy_stream.dart
index 147fa8bd5f2984b66335bc4a78f8b9b8e2648a3b..8c8a9d8ecc5ee7a57da85b35309f98f3b074cff8 100644
--- a/lib/src/lazy_stream.dart
+++ b/lib/src/lazy_stream.dart
@@ -27,9 +27,7 @@ class LazyStream<T> extends Stream<T> {
}
StreamSubscription<T> listen(void onData(T event),
- {Function onError,
- void onDone(),
- bool cancelOnError}) {
+ {Function onError, void onDone(), bool cancelOnError}) {
if (_callback == null) {
throw new StateError("Stream has already been listened to.");
}
@@ -43,10 +41,10 @@ class LazyStream<T> extends Stream<T> {
Stream<T> stream;
if (result is Future) {
stream = StreamCompleter.fromFuture(result.then((stream) {
- return DelegatingStream.typed/*<T>*/(stream as Stream);
+ return DelegatingStream.typed<T>(stream as Stream);
}));
} else {
- stream = DelegatingStream.typed/*<T>*/(result as Stream);
+ stream = DelegatingStream.typed<T>(result as Stream);
}
return stream.listen(onData,

Powered by Google App Engine
This is Rietveld 408576698