qmuntal / stateless

Go library for creating finite state machines
BSD 2-Clause "Simplified" License
898 stars 47 forks source link

Support for extended states #54

Closed kunalpowar closed 1 year ago

kunalpowar commented 1 year ago

I was trying to implement extended states with the library. Take the example mentioned in the wiki itself. image

How and where would I represent key_count?

kunalpowar commented 1 year ago

I tried a quick POC as seen in this PR to allow for initialising the machine with an extended state.

kunalpowar commented 1 year ago

Meanwhile I am checking the recommendation in this thread to see if I can make it work.

kunalpowar commented 1 year ago

Closed since this approach can be used.