MCPcopy Index your code
hub / github.com/OpenTSDB/async / chain

Method chain

src/Deferred.java:820–827  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

addCallbacksMethod · 0.95

Tested by

no test coverage detected