Skip to main content

Module update

Module update 

Source
Expand description

Pure update(State, Msg) -> (State, Command<Effect, Msg>).

Functions§

update
Pure state-transition function. Each arm returns the next State and a Command that the runtime drains (synchronous events re-fed through update; effects handed to EffectRunner). This function spawns no threads and performs no IO; state.now is the runtime’s clock for any score/age math.