Resource

sealed class Resource<out E, out T>

Inheritors

Types

Link copied to clipboard
class Error<E>(error: E) : Resource<E, Nothing>
Link copied to clipboard
Link copied to clipboard
class Success<T>(data: T) : Resource<Nothing, T>

Properties

Link copied to clipboard
val data: T? = null
Link copied to clipboard
val error: E? = null