class UseCase and class FlowUseCase.class UseCase and class FlowUseCase.class UseCase and class 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.class UseCase and class 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.class FlowUseCaseConfig.Builder to construct this object.class UseCaseConfig.Builder to construct this object.launchWithHandler throws an exception and
this exception isn't CancellationException. By default, it rethrows this exception.launchWithHandler throws an exception and
this exception isn't CancellationException. By default, it rethrows this exception.class Result, containing an error.class Result, containing an error.config.
This version is used for use cases without initial arguments.cancelPrevious.
This version is used for use cases without initial arguments.cancelPrevious.
This version gets initial arguments by args.config.
This version is used for use cases without initial arguments.cancelPrevious.
This version is used for use cases without initial arguments.cancelPrevious.
This version gets initial arguments by args.interface CoroutineScopeOwner implementationsinterface CoroutineScopeOwner implementationsonSuccess for encapsulated value if this instance represents class Success
or the result of onError function for encapsulated exception if it is class Error.class Success or
throws CancellationException with Error.error as its cause if it is class Error.class Success or defaultValue
for encapsulated exception if it is class Error.class Success or result of onError
for encapsulated exception if it is class Error.class Success or null
for encapsulated exception if it is class Error.class Success or
throws the encapsulated exception if it is class Error.block in coroutineScope. Encapsulates this call with try catch block and when an exception is thrown
then it is logged in UseCaseErrorHandler.globalOnErrorLogger and handled by defaultErrorHandler.block in coroutineScope. Encapsulates this call with try catch block and when an exception is thrown
then it is logged in UseCaseErrorHandler.globalOnErrorLogger and handled by defaultErrorHandler.transform function applied to encapsulated value
if this instance represents class Success or the original encapsulated exception if it is class Error.transform function applied to encapsulated value
if this instance represents class Success or the original encapsulated exception if it is class Error.transform function applied to encapsulated exception
if this instance represents class Error or the original encapsulated value if it is class Success.transform function applied to encapsulated exception
if this instance represents class Error or the original encapsulated value if it is class Success.class Success or with class Errorclass Result, containing a value.class Result, containing a value.block and returns class Success with encapsulated result if invocation was successful,
catching and returning class Error with any thrown exception except CancellationException.interface CoroutineScopeOwner implementationsinterface CoroutineScopeOwner implementations