function onSuccess
source · line 38public
public fun <T, E> Result<T, E>.onSuccess(action: (T) -> Unit): Result<T, E>
Extension receiver: Result<T, E>
Runs the action only for Success and returns this result.
parameter receiver
source · line 38public
Result<T, E>
type parameter T
source · line 38public
T
type parameter E
source · line 38public
E
parameter action
source · line 38public
action: (T) -> Unit