Package-level declarations

Types

Link copied to clipboard
sealed class Outcome<out V, out E>

Functions

Link copied to clipboard
inline fun <T, E> Outcome<T, E>.runOnError(block: (E) -> Unit): Outcome<T, E>
Link copied to clipboard
inline fun <T, E> Outcome<T, E>.runOnOk(block: (T) -> Unit): Outcome<T, E>
Link copied to clipboard
fun <V, E> Outcome<V, E>.unwrapOrDefault(default: V): V
Link copied to clipboard
fun <V, E> Outcome<V, E>.unwrapOrNull(): V?
Link copied to clipboard
inline fun <T, E> Outcome<T, E>.unwrapOrReturn(block: (Outcome.Error<E>) -> Nothing): T