abstract fun <U : Any> then(fn: Function<in T, out AsyncResult<U>>): AsyncResult<U>
(source)
Returns a new result that, when this result completes normally, completes with the same value or exception as the result returned after executing the given function with this results value as an argument.
fn
- The function returning a new result.
- The type of the returned result's value.
Return
A new result.