ObservableInteractor

abstract class ObservableInteractor<P : InteractorParams, T>(ioScheduler: Scheduler, uiScheduler: Scheduler)

Abstract class for a use case, representing an execution unit of asynchronous work. This use case type uses Observable as the return type. Upon subscription a use case will execute its job in the thread specified by the ioScheduler. and will post the result to the thread specified by uiScheduler.

Constructors

Link copied to clipboard
fun ObservableInteractor(ioScheduler: Scheduler, uiScheduler: Scheduler)

Functions

Link copied to clipboard
fun buildObservable(params: P): Observable<T>

Build a use case with the provided execution thread and post execution thread