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

Unified Diff: utils/pub/validator.dart

Issue 11785028: Commit Martin's patch for pub + lib_v2. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Revise. 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/oauth2.dart ('k') | utils/pub/validator/dependency.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/pub/validator.dart
diff --git a/utils/pub/validator.dart b/utils/pub/validator.dart
index 70f5a9ffa24041516d974630a760b95aea26953f..9a15598deb866d7c1190bbd02737a2840501c26c 100644
--- a/utils/pub/validator.dart
+++ b/utils/pub/validator.dart
@@ -54,7 +54,7 @@ abstract class Validator {
// TODO(nweiz): The sleep 0 here forces us to go async. This works around
// 3356, which causes a bug if all validators are (synchronously) using
// Future.immediate and an error is thrown before a handler is set up.
- return sleep(0).chain((_) {
+ return sleep(0).then((_) {
return Futures.wait(
validators.mappedBy((validator) => validator.validate()));
}).then((_) {
« no previous file with comments | « utils/pub/oauth2.dart ('k') | utils/pub/validator/dependency.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698