Skip to content

Latest commit

 

History

History
51 lines (33 loc) · 1.39 KB

README.md

File metadata and controls

51 lines (33 loc) · 1.39 KB

/pkg/history

cd /

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.

Installation

import amhist "github.com/pancsta/asyncmachine-go/pkg/states/history"

Usage

// 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

TODO

  • MatchEntries
  • StatesActiveDuring
  • StatesInactiveDuring
  • MaxLimits

Documentation

Status

Testing, not semantically versioned.

monorepo

Go back to the monorepo root to continue reading.