andThen

inline fun <R, T> AsyncResult<R>.andThen(noinline transform: (R) -> AsyncResult<T>): AsyncResult<T>

Returns the transform result value if both the receiver and the transformed value are Success.


inline fun <T1, T2> () -> AsyncResult<T1>.andThen(noinline transform: (T1) -> AsyncResult<T2>): AsyncResult<T2>

Returns the transform result value if the receiver function returned a Success value. This value will be passed to the transform function.