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

Unified Diff: utils/pub/error_group.dart

Issue 12021008: Use the dart:async Stream API thoroughly in Pub. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes 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 | « utils/pub/curl_client.dart ('k') | utils/pub/hosted_source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/error_group.dart
diff --git a/utils/pub/error_group.dart b/utils/pub/error_group.dart
index a9f78617f7be0b9d7e1c5ecee3f4fa568c9ec11e..dec45b1abb2ee963c38b707f66ee060394d6629d 100644
--- a/utils/pub/error_group.dart
+++ b/utils/pub/error_group.dart
@@ -179,7 +179,7 @@ class _ErrorGroupFuture implements Future {
_completer.future.catchError((_) {});
}
- Future then(onValue(T value), {onError(AsyncError asyncError)}) {
+ Future then(onValue(value), {onError(AsyncError asyncError)}) {
_hasListeners = true;
return _completer.future.then(onValue, onError: onError);
}
@@ -194,7 +194,7 @@ class _ErrorGroupFuture implements Future {
return _completer.future.whenComplete(action);
}
- Stream<T> asStream() {
+ Stream asStream() {
_hasListeners = true;
return _completer.future.asStream();
}
« no previous file with comments | « utils/pub/curl_client.dart ('k') | utils/pub/hosted_source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698