FlowInteractor

abstract class FlowInteractor<in P : InteractorParams, out R>

An interactor (use case in Clean Architecture) represents an execution unit of asynchronous work. A FlowInteractor exposes a cold stream of values implemented with Kotlin Flow.

Work will be executed on thread as specified by the dispatcher of the interactor.

Constructors

Link copied to clipboard

Functions

Link copied to clipboard
fun buildFlow(params: P): Flow<R>

Build a new Flow from this interactor.

Properties

Link copied to clipboard
abstract val dispatcher: CoroutineDispatcher

The coroutine context this interactor should execute on.