Companion

Functions

Link copied to clipboard
fun <T> failure(throwable: Throwable): ResultCompat<T>

Returns an instance that encapsulates the given Throwable as failure.

Link copied to clipboard
fun <T> success(value: T): ResultCompat<T>

Returns an instance that encapsulates the given value as successful value.