Companion

object Companion

Result companion object.

Functions

Link copied to clipboard
@JvmName(name = "failure")
fun <T> failure(exception: Throwable): Result<T>

Returns the Result instance which presents an unsuccessful result with the exception value.

Link copied to clipboard
@JvmName(name = "success")
fun <T> success(value: T): Result<T>

Returns the Result instance which presents a successful result with the value.