ResultInteractor

abstract class ResultInteractor<in P, R>

Interactor used to get explicit result from the work performed

Code example:

viewModelScope.launch {
val result = getResult(params).first()
}

Constructors

ResultInteractor
Link copied to clipboard
fun ResultInteractor()

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
invoke
Link copied to clipboard
operator fun invoke(params: P): Flow<R>
To invoke the interactor
toString
Link copied to clipboard
open fun toString(): String

Extensions

invoke
Link copied to clipboard
operator fun <T> ResultInteractor<Unit, T>.invoke(): Flow<T>