Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce transition predicates #42

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Jan 2, 2022

  1. FSM.add_transition(): add optional predicate function argument

    the transition will fire only iff predicate returns true. Default is true.
    Michael Haberler committed Jan 2, 2022
    Configuration menu
    Copy the full SHA
    9ba6584 View commit details
    Browse the repository at this point in the history
  2. examples/predicate: demonstrate transition predicates

    a transition guarded with a predicate will only fire if the predicate returns
    true.
    
    In this example, transitions will start firing only after 5s post startup.
    Michael Haberler committed Jan 2, 2022
    Configuration menu
    Copy the full SHA
    7ec8dc2 View commit details
    Browse the repository at this point in the history