lib / com.willowtreeapps.common.external / Thunk

Thunk

interface Thunk<State>

Interface that can be dispatched and handled by ThunkMiddleware. Asynchronous operations and Actions may be dispatched from within a Thunk. Due to limitation of K/N a type alias does not work currently.

Functions

dispatch

abstract fun dispatch(dispatch: <ERROR CLASS>, getState: <ERROR CLASS><State>, extraArgument: Any?): Any