Package-level declarations

Types

Link copied to clipboard
sealed interface Result<out T>

Async triad for UI / presentation layers: loading → success or error.

Functions

Link copied to clipboard
fun <T> Flow<T>.asResult(): Flow<Result<T>>

Maps upstream emissions to Result.Success, emits Result.Loading on start, and Result.Error when the upstream fails.