| 609 | } |
| 610 | |
| 611 | private static class Ensure<T> extends Continuation<T, T> { |
| 612 | private final Runnable f; |
| 613 | |
| 614 | public Ensure(final Runnable f) { |
| 615 | this.f = f; |
| 616 | } |
| 617 | |
| 618 | @Override |
| 619 | final Future<T> apply(final Future<T> result) { |
| 620 | return result.ensure(f); |
| 621 | } |
| 622 | } |
| 623 | |
| 624 | @Override |
| 625 | public final Future<T> ensure(final Runnable f) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…