Result
Types
Functions
Link copied to clipboard
inline fun <R, T> Result<T>.fold(onSuccess: (value: T) -> R, onFailure: (exception: Throwable) -> R): R
Returns the result of onSuccess for the encapsulated value if this instance represents success or the result of onFailure function for the encapsulated Throwable exception if it is failure.
Since Kotlin 1.3
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard