public class UseCase<ARGS,T>
Base Coroutine use case meant to use in interface CoroutineScopeOwner implementations
interface CoroutineScopeOwner| Constructor and Description |
|---|
UseCase()
Base Coroutine use case meant to use in
interface CoroutineScopeOwner implementations |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
build(ARGS args,
kotlin.coroutines.Continuation<? super T> p)
Suspend function which should contain business logic
|
kotlinx.coroutines.Deferred<T> |
getDeferred()
Deferred used to hold and cancel existing run of this use case
|
void |
setDeferred(kotlinx.coroutines.Deferred<? extends T> p)
Deferred used to hold and cancel existing run of this use case
|
public UseCase()
Base Coroutine use case meant to use in interface CoroutineScopeOwner implementations
interface CoroutineScopeOwner@Nullable public kotlinx.coroutines.Deferred<T> getDeferred()
Deferred used to hold and cancel existing run of this use case
public void setDeferred(@Nullable
kotlinx.coroutines.Deferred<? extends T> p)
Deferred used to hold and cancel existing run of this use case
@Nullable
public java.lang.Object build(ARGS args,
@NotNull
kotlin.coroutines.Continuation<? super T> p)
Suspend function which should contain business logic