UseCase

abstract class UseCase<ARGS, T>

Base Coroutine use case meant to use in CoroutineScopeOwner implementations

Constructors

UseCase
Link copied to clipboard
fun UseCase()

Functions

build
Link copied to clipboard
abstract suspend fun build(args: ARGS): T
Suspend function which should contain business logic
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String

Properties

deferred
Link copied to clipboard
var deferred: Deferred<T>? = null
Deferred used to hold and cancel existing run of this use case