SingleInteractor

abstract class SingleInteractor<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 Single 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 SingleInteractor(ioScheduler: Scheduler, uiScheduler: Scheduler)

Functions

Link copied to clipboard
fun buildSingle(params: P, blocking: Boolean = false): Single<T>

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