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

Unified Diff: utils/pub/entrypoint.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/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/entrypoint.dart
diff --git a/utils/pub/entrypoint.dart b/utils/pub/entrypoint.dart
index 457d480f687c54379dce5052983756039d890c64..4f895b3a43ed3b65381e2266721fdfef2b9e01b0 100644
--- a/utils/pub/entrypoint.dart
+++ b/utils/pub/entrypoint.dart
@@ -131,7 +131,7 @@ class Entrypoint {
/// [packageVersions], and writes a [LockFile].
Future _installDependencies(List<PackageId> packageVersions) {
return cleanDir(path).then((_) {
- return Futures.wait(packageVersions.mappedBy((id) {
+ return Future.wait(packageVersions.mappedBy((id) {
if (id.source is RootSource) return new Future.immediate(id);
return install(id);
}));
@@ -208,7 +208,7 @@ class Entrypoint {
return _linkSecondaryPackageDir(dir)
.then((_) => _listDirWithoutPackages(dir))
.then((files) {
- return Futures.wait(files.mappedBy((file) {
+ return Future.wait(files.mappedBy((file) {
return dirExists(file).then((isDir) {
if (!isDir) return new Future.immediate(null);
return _linkSecondaryPackageDir(file);
@@ -223,7 +223,7 @@ class Entrypoint {
/// files and `package` files.
Future<List<String>> _listDirWithoutPackages(dir) {
return listDir(dir).then((files) {
- return Futures.wait(files.mappedBy((file) {
+ return Future.wait(files.mappedBy((file) {
if (basename(file) == 'packages') return new Future.immediate([]);
return dirExists(file).then((isDir) {
if (!isDir) return new Future.immediate([]);
« 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