UseCase

abstract class UseCase<ARGS, T>

Base Coroutine use case meant to use in CoroutineScopeOwner implementations

Constructors

Link copied to clipboard
fun UseCase()

Functions

Link copied to clipboard
abstract suspend fun build(args: ARGS): T

Suspend function which should contain business logic

Properties

Link copied to clipboard
var deferred: Deferred<T>? = null

Deferred used to hold and cancel existing run of this use case