Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

Run closure on transition #2

Description

@jamessewell

It would be great if I could pass a closure which is always called when a transition happens:

For example:

sm! {
      This {
          InitialStates { Stale }
 
          Startup {
              Stale => Starting (&application.stop)
          }
 
          Shutdown {
              Stale => Stopping (&application.stop)
          }

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions