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

Unified Diff: utils/pub/error_group.dart

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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: utils/pub/error_group.dart
diff --git a/utils/pub/error_group.dart b/utils/pub/error_group.dart
index b5f8f8e9ea5fc1f9804b36411473a215e6238fae..a538709ac882ffb490da2c6415853eb8570c5177 100644
--- a/utils/pub/error_group.dart
+++ b/utils/pub/error_group.dart
@@ -264,7 +264,7 @@ class _ErrorGroupStream extends Stream {
if (_isDone) return;
_subscription.cancel();
// Call these asynchronously to work around issue 7913.
- new Future.immediate(null).then((_) {
+ new Future.value().then((_) {
_controller.addError(e.error, e.stackTrace);
_controller.close();
});

Powered by Google App Engine
This is Rietveld 408576698