Expand description
Pure update(State, Msg) -> (State, Command<Effect, Msg>).
Functions§
- update
- Pure state-transition function. Each arm returns the next
Stateand aCommandthat the runtime drains (synchronous events re-fed throughupdate; effects handed toEffectRunner). This function spawns no threads and performs no IO;state.nowis the runtime’s clock for any score/age math.