T
- Type of the value delivered via onValue(Object)
U
- Type of the value for the result returned from onValue(Object)
public static interface GeckoResult.OnValueListener<T,U>
GeckoResult
Modifier and Type | Method and Description |
---|---|
GeckoResult<U> |
onValue(T value)
Called when a
GeckoResult is completed with a value. |
@AnyThread @Nullable GeckoResult<U> onValue(@Nullable T value) throws Throwable
GeckoResult
is completed with a value. Will be
called on the same thread where the GeckoResult was created or on
the Handler
provided via GeckoResult.withHandler(Handler)
.value
- The value of the GeckoResult
Throwable
- Exception used to complete next result in the chain.