onSuccess

Performs the given action on the encapsulated value if this instance represents Success. Returns the original ProcessOutActivityResult unchanged.


inline fun <T : Any> ProcessOutResult<T>.onSuccess(action: (value: T) -> Unit): ProcessOutResult<T>

Performs the given action on the encapsulated value if this instance represents Success. Returns the original ProcessOutResult unchanged.