You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: migrate examples to StateChart, fix delayed events, document is_terminated
Migrate all 14 gallery examples from StateMachine to StateChart, setting
behavioral flags where needed to preserve existing semantics
(allow_event_without_transition, enable_self_transition_entries,
error_on_execution).
Add 4 new v3 feature examples:
- statechart_eventless_machine: eventless transitions (Ring Corruption)
- statechart_delayed_machine: compound/parallel states, delayed events,
internal events, cancel_event (Beacons of Gondor)
- statechart_error_handling_machine: error.execution handling
- statechart_in_condition_machine: In() guard with parallel states
Fix bugs in delayed event handling:
- Rename send()/raise_() parameter from event_id to send_id to match
BoundEvent.put() and cancel_event() signatures (cancel_event was
silently broken because send_id was always None)
- Change continue→break in sync/async engine Phase 3 loop when
encountering delayed events, allowing internal events and eventless
transitions to be processed while waiting
Document is_terminated property:
- Add docstring to the property itself
- Add "Checking if the machine has terminated" section in docs/states.md
- Add migration entry in upgrade guide for current_state.final →
is_terminated
- Update send_id references in docs (statecharts.md, release notes,
upgrade guide)
0 commit comments