Result

sealed interface Result<out T>

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

Distinct from kotlin.Result; import this type explicitly when both are in scope.

Inheritors

Types

Link copied to clipboard
data class Error(val exception: Throwable) : Result<Nothing>
Link copied to clipboard
data object Loading : Result<Nothing>
Link copied to clipboard
data class Success<T>(val data: T) : Result<T>