Empty

object Empty : Result<Nothing>

The operation completed but produced no meaningful data.

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