data class DataFeed<out A, B>
The Data feed contains a snapshot of the requested data and an Observable of future updates.
DataFeed(snapshot: A, updates: <ERROR CLASS><B>)
The Data feed contains a snapshot of the requested data and an Observable of future updates. |
val snapshot: A |
|
val updates: <ERROR CLASS><B> |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |
|
fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.doOnError(action: (Throwable) -> Unit): DataFeed<SNAPSHOT, ELEMENT>
Returns a DataFeed that processes errors according to the provided action. |
|
fun <SNAPSHOT, ELEMENT> DataFeed<SNAPSHOT, ELEMENT>.mapErrors(transform: (Throwable) -> Throwable): DataFeed<SNAPSHOT, ELEMENT>
Returns a DataFeed that transforms errors according to the provided transform function. |