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)); |
} |