@@ -184,7 +184,7 @@ inactive**. A list (slice) of state ticks forms a **machine clock**. The sum of
184184current ** machine time** .
185185
186186Machine clock is a [ logical clock] ( https://en.wikipedia.org/wiki/Logical_clock ) , which purpose is to distinguish
187- different instances of the same state. It's most commonly used by in the form of ` context.Context ` via
187+ different instances of the same state. It's most commonly used in the form of ` context.Context ` via
188188[ ` Machine.NewStateCtx(state string) ` ] ( https://pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.NewStateCtx ) ,
189189but it also provides methods on its own data type [ ` am.Time ` ] ( https://pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Time ) .
190190
@@ -247,10 +247,10 @@ Methods to check the active states:
247247
248248- [` Machine.Is(states)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Is)
249249- [` Machine.Is1(state)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Is1)
250- - [` Not(states)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Not)
251- - [` Not1(state)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Not1)
252- - [` Any(states1, states2...)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Any)
253- - [` Any1(state1, state2...)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Any1)
250+ - [` Machine. Not(states)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Not)
251+ - [` Machine. Not1(state)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Not1)
252+ - [` Machine. Any(states1, states2...)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Any)
253+ - [` Machine. Any1(state1, state2...)` ](https:// pkg.go.dev/github.com/pancsta/asyncmachine-go/pkg/machine#Machine.Any1)
254254
255255Methods to inspect / dump the currently active states:
256256
@@ -386,8 +386,11 @@ States usually belong to one of these categories:
3863861 . Input states (e.g . RPC msgs)
3873872 . Read -only states (e.g . external state / UI state / summaries)
3883883 . Action states (e.g . Start , ShowModal , public API methods)
389+ 4 . Background tasks (e.g . Processing )
390+ 5 . Joining states (e.g . ProcessingDone )
389391
390- Action states often de-activate themselves after they are done, as a part of their [final handler](#final-handlers).
392+ _Action states_ often de-activate themselves after they are done, as a part of their [final handler](#final-handlers). _Joining
393+ states_ are used for relations with other states, as relations to an inactive state are not possible.
391394
392395**Example** - self removal
393396
@@ -844,7 +847,7 @@ Side effects:
844847
845848[Mutations](/docs/manual.md#mutations) are the heartbeat of asyncmachine, while [relations](/docs/manual.md#relations)
846849define the rules of the flow. Each [state](#defining-states) can have 4 types of **relations**. Each relation accepts a
847- list of state names. Relations guarantee optional consistency among [active states](#active-states).
850+ list of state names. Relations guarantee consistency among [active states](#active-states).
848851
849852Relations form a Directed Cyclic Graph (DCG), but are not Turing complete, as they guarantee termination. Only
850853[auto states](#auto-states) trigger a single, automatic mutation attempt.
0 commit comments