(final Consumer<Throwable> c)
| 674 | } |
| 675 | |
| 676 | @Override |
| 677 | public final Future<T> onFailure(final Consumer<Throwable> c) { |
| 678 | if (getInterruptHandler() != null) |
| 679 | return continuation(new OnFailure<T>(c) { |
| 680 | @Override |
| 681 | protected final InterruptHandler getInterruptHandler() { |
| 682 | return Promise.this; |
| 683 | } |
| 684 | }); |
| 685 | else |
| 686 | return continuation(new OnFailure<T>(c)); |
| 687 | } |
| 688 | |
| 689 | private static class Respond<T> extends Continuation<T, T> { |
| 690 | private final Responder<? super T> r; |
nothing calls this directly
no test coverage detected