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

Method addBoth

src/Deferred.java:768–770  ·  view source on GitHub ↗

Registers a callback both as a callback and as an "errback". If the deferred result is already available, the callback is executed immediately from this thread (regardless of whether or not the current result is an exception). If the deferred result is not available, this callback is queued and

(final Callback<R, T> cb)

Source from the content-addressed store, hash-verified

766 * @return {@code this} with an "updated" type.
767 */
768 public <R> Deferred<R> addBoth(final Callback<R, T> cb) {
769 return addCallbacks(cb, cb);
770 }
771
772 /**
773 * Registers a callback both as a callback and as an "errback".

Callers 3

doJoinMethod · 0.95
handleContinuationMethod · 0.80
DeferredGroupMethod · 0.80

Calls 1

addCallbacksMethod · 0.95

Tested by

no test coverage detected