Registers a callback both as a callback and as an "errback". This has the exact same effect as #addBoth, but keeps the type information "correct" when the callback to add returns a Deferred. @param cb The callback to register. @return this with an "updated" type.
(final Callback<D, T> cb)
| 778 | * @return {@code this} with an "updated" type. |
| 779 | */ |
| 780 | @SuppressWarnings("unchecked") |
| 781 | public <R, D extends Deferred<R>> |
| 782 | Deferred<R> addBothDeferring(final Callback<D, T> cb) { |
| 783 | return addCallbacks((Callback<R, T>) ((Object) cb), |
| 784 | (Callback<R, T>) ((Object) cb)); |
| 785 | } |
| 786 | |
| 787 | /** |
| 788 | * Chains another {@code Deferred} to this one. |
nothing calls this directly
no test coverage detected