T
- Type of the value delivered via onValue(T)
U
- Type of the new value returned by onValue(T)
public static interface GeckoResult.OnValueMapper<T,U>
GeckoResult
values.Modifier and Type | Method and Description |
---|---|
U |
onValue(T value)
Called when a
GeckoResult is completed with a value. |
@AnyThread @Nullable 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.