Chains another Deferred to this one. This method simply ensures that whenever the callback chain in this is run, then the callback chain in other gets run too. The result handed to other is whatever result this currently has. One case where this is pa
(final Deferred<T> other)
| 818 | * @throws AssertionError if {@code this == other}. |
| 819 | */ |
| 820 | public Deferred<T> chain(final Deferred<T> other) { |
| 821 | if (this == other) { |
| 822 | throw new AssertionError("A Deferred cannot be chained to itself." |
| 823 | + " this=" + this); |
| 824 | } |
| 825 | final Chain<T> cb = new Chain<T>(other); |
| 826 | return addCallbacks(cb, cb); |
| 827 | } |
| 828 | |
| 829 | /** |
| 830 | * Callback used to chain a deferred with another one. |
nothing calls this directly
no test coverage detected