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

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

Issue 2867763003: Make Future._nullFuture be initialized synchronously. (Closed)
Patch Set: Created 3 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/async/future.dart
diff --git a/sdk/lib/async/future.dart b/sdk/lib/async/future.dart
index 4f1df90488355237b72866d04786b65987af6d12..595489e890f4adb45498f6a66b00b9551ea629ae 100644
--- a/sdk/lib/async/future.dart
+++ b/sdk/lib/async/future.dart
@@ -135,7 +135,7 @@ abstract class FutureOr<T> {
*/
abstract class Future<T> {
// The `_nullFuture` is a completed Future with the value `null`.
- static final _Future<Null> _nullFuture = new Future.value(null);
+ static final _Future<Null> _nullFuture = new _Future<Null>.value(null);
/**
* Creates a future containing the result of calling [computation]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698