Loading

The operation is currently in progress and has not yet produced a value.

Properties

Link copied to clipboard
val <T> Result<T>.data: T?

Extracts the data from a Result.Success, or returns null for all other states.

Functions

Link copied to clipboard
fun <T, R> Result<T>.map(block: (T) -> Result<R>): Result<R>

Transforms a successful result using block, propagating Result.Loading, Result.Empty, and Result.Error unchanged.

Link copied to clipboard
open override fun toString(): String