Builder

class Builder<T>

Constructs references to lambdas and some basic configuration used to process results of Coroutine use case.

Constructors

Builder
Link copied to clipboard
fun Builder()

Functions

build
Link copied to clipboard
fun build(): CoroutineScopeOwner.UseCaseConfig<T>
disposePrevious
Link copied to clipboard
fun disposePrevious(disposePrevious: Boolean)
Set whether currently active Job of internal Coroutine should be canceled when execute is called repeatedly.
equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
onError
Link copied to clipboard
fun onError(onError: (Throwable) -> Unit)
Set lambda that is called when exception on internal Coroutine occurs
onStart
Link copied to clipboard
fun onStart(onStart: () -> Unit)
Set lambda that is called right before the internal Coroutine is created
onSuccess
Link copied to clipboard
fun onSuccess(onSuccess: (T) -> Unit)
Set lambda that is called when internal Coroutine finished without exceptions
toString
Link copied to clipboard
open fun toString(): String