Data

sealed interface Data<out D>

Inheritors

Types

Link copied to clipboard
data class Failure(val throwable: Throwable) : Data<Nothing>
Link copied to clipboard
data class Success<out D>(val data: D) : Data<D>

Functions

Link copied to clipboard
inline fun <T, R> Data<T>.map(map: (T) -> R): Data<R>
inline fun <T, R> Data<T>.map(error: (Throwable) -> Throwable, success: (T) -> R): Data<R>