Progress

data class Progress<out T>(val data: T? = null) : TWSOutcome<T>

Represents the progress state when fetching data from the API.

Parameters

data

Cached data, if available, during the fetch process.

Constructors

Link copied to clipboard
constructor(data: T? = null)

Properties

Link copied to clipboard
open override val data: T? = null

Functions

Link copied to clipboard
fun <A, B> TWSOutcome<A>.mapData(mapper: (A) -> B): TWSOutcome<B>

Map data of this outcome, while keeping the type.