Success

data class Success<T, E>(val value: T) : Result<T, E>

Represents a successful fetch operation.

Parameters

T

The type of the value fetched

E

The error type

Constructors

Link copied to clipboard
constructor(value: T)

Properties

Link copied to clipboard
val value: T

The fetched value

Functions

Link copied to clipboard
fun valueOrNull(): T?

Shortcut function to ignore a failure.