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

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

Issue 36463002: Fix a synchrony bug in barback. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
Index: pkg/barback/lib/src/phase_output.dart
diff --git a/pkg/barback/lib/src/phase_output.dart b/pkg/barback/lib/src/phase_output.dart
index 31dcdd24c5e5d0f5f1f2c81c18e6b8562d95a442..d9ba604212c12486deda777f109bae6460df4512 100644
--- a/pkg/barback/lib/src/phase_output.dart
+++ b/pkg/barback/lib/src/phase_output.dart
@@ -82,7 +82,7 @@ class PhaseOutput {
/// Watches [node] to adjust [_assets] and [output] when it's removed.
void _watchAsset(AssetNode node) {
- node.whenRemoved.then((_) {
+ node.whenRemoved(() {
if (_assets.length == 1) {
assert(_assets.single == node);
_outputForwarder.close();

Powered by Google App Engine
This is Rietveld 408576698