Chromium Code Reviews| Index: pkg/barback/lib/src/transform_node.dart |
| diff --git a/pkg/barback/lib/src/transform_node.dart b/pkg/barback/lib/src/transform_node.dart |
| index 6df431540abf424db33bf94c2efa608a75a01b7e..0cfc508f1ed07fa2aa6d886d9beedb3bd482b335 100644 |
| --- a/pkg/barback/lib/src/transform_node.dart |
| +++ b/pkg/barback/lib/src/transform_node.dart |
| @@ -125,7 +125,10 @@ class TransformNode { |
| _inputSubscriptions.clear(); |
| _isDirty = false; |
| - return transformer.apply(transform).catchError((error) { |
| + |
| + return phase.cascade.graph.transformerPool.checkOut().then((item) { |
|
Alan Knight
2013/10/23 00:24:06
That seems like a rather awkward way to get to the
nweiz
2013/10/23 04:11:25
I agree. I'm planning a refactor that will make th
|
| + return transformer.apply(transform).whenComplete(item.release); |
|
Alan Knight
2013/10/23 00:24:06
Is it worth defining a pool API that automatically
nweiz
2013/10/23 04:11:25
Done.
|
| + }).catchError((error) { |
| // If the transform became dirty while processing, ignore any errors from |
| // it. |
| if (_isDirty) return; |