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

Unified Diff: tools/dom/docs/lib/docs.dart

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added co19 issue number. 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
« no previous file with comments | « tests/standalone/standalone.status ('k') | tools/dom/templates/html/impl/impl_IDBCursor.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/docs/lib/docs.dart
diff --git a/tools/dom/docs/lib/docs.dart b/tools/dom/docs/lib/docs.dart
index 6c3b75c58cea2b0c909179733aeb22a9734feadf..8856b733c125bb4958fe44896f0f6b7a5eb82bb5 100644
--- a/tools/dom/docs/lib/docs.dart
+++ b/tools/dom/docs/lib/docs.dart
@@ -64,7 +64,7 @@ Future<bool> convert(Path libPath, Path jsonPath) {
}
Future<bool> _exportJsonToFile(Map convertedJson, Path jsonPath) {
- return new Future.of(() {
+ return new Future.sync(() {
final jsonFile = new File.fromPath(jsonPath);
var writeJson = prettySerialize(convertedJson);
« no previous file with comments | « tests/standalone/standalone.status ('k') | tools/dom/templates/html/impl/impl_IDBCursor.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698