Builder

class Builder<T>

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

Constructors

Link copied to clipboard
fun Builder()

Functions

Link copied to clipboard
fun build(): CoroutineScopeOwner.FlowUseCaseConfig<T>
Link copied to clipboard
fun disposePrevious(disposePrevious: Boolean)

Set whether currently running Job of internal Flow should be canceled when execute is called repeatedly.

Link copied to clipboard
fun onComplete(onComplete: () -> Unit)

Set lambda that is called when internal Flow is completed without errors

Link copied to clipboard
fun onError(onError: (Throwable) -> Unit)

Set lambda that is called when some exception on internal Flow occurs

Link copied to clipboard
fun onNext(onNext: (T) -> Unit)

Set lambda that is called when internal Flow emits new value

Link copied to clipboard
fun onStart(onStart: () -> Unit)

Set lambda that is called right before internal Job of Flow is launched.