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

Unified Diff: pkg/barback/lib/src/phase_input.dart

Issue 101523003: Add chain support to barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: code review Created 7 years 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
Index: pkg/barback/lib/src/phase_input.dart
diff --git a/pkg/barback/lib/src/phase_input.dart b/pkg/barback/lib/src/phase_input.dart
index ff8ad5ccd537d15ad6afe01a9136b06338ee0bb7..13bc700c4a6a906daa3958c07852c829adfb8eed 100644
--- a/pkg/barback/lib/src/phase_input.dart
+++ b/pkg/barback/lib/src/phase_input.dart
@@ -291,7 +291,7 @@ class PhaseInput {
/// synchronously to ensure that [_adjustTransformers] isn't called before the
/// callback.
Future _waitForTransformers(callback()) {
- if (_adjustTransformersFuture == null) return new Future.sync(callback);
+ if (_adjustTransformersFuture == null) return syncFuture(callback);
return _adjustTransformersFuture.then(
(_) => _waitForTransformers(callback));
}

Powered by Google App Engine
This is Rietveld 408576698