Note
asyncmachine-go is a declarative control flow library implementing AOP and Actor Model through a clock-based state machine.
/pkg/history provides mutation history tracking and traversal. It's in an early stage, but it has a very important role in making informed decision about state flow. Besides providing a log of changes, it also binds human time to machine time.
import amhist "github.com/pancsta/asyncmachine-go/pkg/states/history"
// create a history
hist := Track(mach, am.S{"A", "C"}, 0)
// mutate
mach.Add1("A", nil)
// run a query
hist.ActivatedRecently("A", time.Second) // true
- MatchEntries
- StatesActiveDuring
- StatesInactiveDuring
- MaxLimits
Testing, not semantically versioned.
Go back to the monorepo root to continue reading.