stateless icon indicating copy to clipboard operation
stateless copied to clipboard

Go library for creating finite state machines

Results 14 stateless issues
Sort by recently updated
recently updated
newest added

Currently it is possible to pass arguments using variable number of arguments since `Fire()` function is variadic. This works, however this sort of defeats the purpose of static type checking...

In the code there are mentions of "internal" transitions as well as of an "initial" transition which supposedly adds an internal transition to the machine. What is the purpose of...

Neither the example nor other text ever says where variables like offTheHook come from and what type they need to be. The example should be complete, including definitions.

Go 1.18 official release brings Generics to the table!

This PR is just to view which are the changes required to adopt Go 1.18 type parameters. I'm still not sure if it is worth making State and Trigger generic...

Hi @qmuntal, We're implementing a state machine that uses Postgres as a backend for external storage. As a solution for the concurrent writes issue, we needed to use [row-level locks](https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-ROWS)...

Hi, thanks for this great state machine library and I meent a problem when using it. I have a trigger named "shutdown machine", and it can be fired at any...

In scenarios where state machine entities are persisted and outlive a host's memory, and then are later retrieved to act upon, it would be helpful to be able to efficiently...

in OnTransitioning/OnTransitioned, and how to get superstate for source/Destination