class ActionDispatcher
Handle dispatch logic to ActionReducer, help wrap Action dispatchAction - Help dispatch given action to ActionReducer, on given coroutineScope context. actionOn - Handle default error behavior by routing back to ::onError function
dispatch will be done in background
Author
Arnaud Giuliani
ActionDispatcher(reducer: ActionReducer, runError: suspend (Exception, UIState) -> Unit, tag: String)
Handle dispatch logic to ActionReducer, help wrap Action dispatchAction - Help dispatch given action to ActionReducer, on given coroutineScope context. actionOn - Handle default error behavior by routing back to ::onError function |
val tag: String |
fun actionOn(kClass: KClass<out UIState>, onAction: ActionFunction): Unitfun actionOn(kClass: KClass<out UIState>, onAction: ActionFunction, onError: ActionErrorFunction): Unit |
|
fun close(): Unit |
|
fun dispatchAction(onAction: ActionFunction): Unitfun dispatchAction(onAction: ActionFunction, onError: ActionErrorFunction): Unitfun dispatchAction(action: Action): Unit |