Success

data class Success<out D>(val data: D) : Result<D, Nothing>

Constructors

Link copied to clipboard
constructor(data: D)

Properties

Link copied to clipboard
val data: D

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <T, E : Error, R> Result<T, E>.map(map: (T) -> R): Result<R, E>
Link copied to clipboard
inline fun <T, E : Error> Result<T, E>.onError(action: (E) -> Unit): Result<T, E>
Link copied to clipboard
inline fun <T, E : Error> Result<T, E>.onSuccess(action: (T) -> Unit): Result<T, E>