onSuccess

inline fun onSuccess(action: (T) -> Unit): Result<T, E>

Runs action only on success and returns this result unchanged. Action exceptions propagate.