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

Method addCallback

src/Deferred.java:720–722  ·  view source on GitHub ↗

Registers a callback. If the deferred result is already available and isn't an exception, the callback is executed immediately from this thread. If the deferred result is already available and is an exception, the callback is discarded. If the deferred result is not available, this callback is q

(final Callback<R, T> cb)

Source from the content-addressed store, hash-verified

718 * @return {@code this} with an "updated" type.
719 */
720 public <R> Deferred<R> addCallback(final Callback<R, T> cb) {
721 return addCallbacks(cb, Callback.PASSTHROUGH);
722 }
723
724 /**
725 * Registers a callback.

Callers

nothing calls this directly

Calls 1

addCallbacksMethod · 0.95

Tested by

no test coverage detected