data class DataFeed<out A, B>
The Data feed contains a snapshot of the requested data and an Observable of future updates.
<init> |
The Data feed contains a snapshot of the requested data and an Observable of future updates. DataFeed(snapshot: A, updates: Observable<B>) |
snapshot |
val snapshot: A |
updates |
val updates: Observable<B> |
doOnError |
Returns a DataFeed that processes errors according to the provided action. fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.doOnError(action: (Throwable) -> Unit): DataFeed<SNAPSHOT, ELEMENT> |
mapErrors |
Returns a DataFeed that transforms errors according to the provided transform function. fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.mapErrors(transform: (Throwable) -> Throwable): DataFeed<SNAPSHOT, ELEMENT> |