Package app. futured. arkitekt. crusecases
Types
Base ViewModel class prepared for providing data to UI through LiveData and obtaining data from Stores (Repositories) by executing Coroutine based use cases like UseCase and FlowUseCase.
This interface gives your class ability to execute UseCase and FlowUseCase Coroutine use cases. You may find handy to implement this interface in custom Presenters, ViewHolders etc. It is your responsibility to cancel coroutineScope when when all running tasks should be stopped.
Base Flow use case meant to use in CoroutineScopeOwner implementations
Base Coroutine use case meant to use in CoroutineScopeOwner implementations
Functions
Returns the encapsulated value if this instance represents Success or throws CancellationException with Error.error as its cause if it is Error.
Returns the encapsulated value if this instance represents Success or defaultValue for encapsulated exception if it is Error.