| Index: pkg/barback/lib/src/phase.dart
|
| diff --git a/pkg/barback/lib/src/phase.dart b/pkg/barback/lib/src/phase.dart
|
| index 78b9ebe87c6e77517b4db9f5ac958498ecaf6afd..a73ee00a6ee8ba744e603157a81c75a51593d768 100644
|
| --- a/pkg/barback/lib/src/phase.dart
|
| +++ b/pkg/barback/lib/src/phase.dart
|
| @@ -153,6 +153,24 @@ class Phase {
|
| return _next;
|
| }
|
|
|
| + /// Mark this phase as removed.
|
| + ///
|
| + /// This will remove all the phase's outputs and all following phases.
|
| + void remove() {
|
| + removeFollowing();
|
| + for (var input in _inputs.values.toList()) {
|
| + input.remove();
|
| + }
|
| + _onDirtyPool.close();
|
| + }
|
| +
|
| + /// Remove all phases after this one.
|
| + Phase removeFollowing() {
|
| + if (_next == null) return;
|
| + _next.remove();
|
| + _next = null;
|
| + }
|
| +
|
| /// Processes this phase.
|
| ///
|
| /// Returns a future that completes when processing is done. If there is
|
|
|