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

Method addBothDeferring

src/Deferred.java:780–785  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 1

addCallbacksMethod · 0.95

Tested by

no test coverage detected