uniflow-core / io.uniflow.core.flow / ActionDispatcher / <init>

<init>

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

dispatch will be done in background

Author
Arnaud Giuliani