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

Unified Diff: utils/pub/io.dart

Issue 11865005: Remove Futures class, move methods to Future. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/hosted_source.dart ('k') | utils/pub/validator.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/io.dart
diff --git a/utils/pub/io.dart b/utils/pub/io.dart
index 51f055e874522b4c7a79718ce948906638bb2092..665680e828ebc871f4c4cec1e81cc2a4fd8680ac 100644
--- a/utils/pub/io.dart
+++ b/utils/pub/io.dart
@@ -59,7 +59,7 @@ String relativeTo(target, base) => path.relative(target, from: base);
/// completes with the result.
Future<bool> exists(path) {
path = _getPath(path);
- return Futures.wait([fileExists(path), dirExists(path)]).then((results) {
+ return Future.wait([fileExists(path), dirExists(path)]).then((results) {
return results[0] || results[1];
});
}
@@ -284,7 +284,7 @@ Future<List<String>> listDir(dir,
};
return completer.future.then((contents) {
- return Futures.wait(children).then((childContents) {
+ return Future.wait(children).then((childContents) {
contents.addAll(flatten(childContents));
return contents;
});
« no previous file with comments | « utils/pub/hosted_source.dart ('k') | utils/pub/validator.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698