Skip to content

Commit

Permalink
chore: fix svg urls
Browse files Browse the repository at this point in the history
  • Loading branch information
pancsta authored Jan 14, 2025
1 parent a272ff8 commit 9f3b6a1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkg/machine/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,43 +26,43 @@ the [manual](/docs/manual.md).

Many states can be active at the same time.

![](../../assets/asyncmachine-go/diagrams/diagram_1.svg)
![diagram](https://github.com/pancsta/assets/blob/main/asyncmachine-go/diagrams/diagram_1.svg)

### [Clock and state contexts](/docs/manual.md#clock-and-context)

States have clocks that produce contexts (odd = active; even = inactive).

![](../../assets/asyncmachine-go/diagrams/diagram_2.svg)
![diagram](https://github.com/pancsta/assets/blob/main/asyncmachine-go/diagrams/diagram_2.svg)

### [Queue](/docs/manual.md#queue-and-history)

Queue of mutations enable lock-free [Actor Model](https://en.wikipedia.org/wiki/Actor_model).

![](../../assets/asyncmachine-go/diagrams/diagram_3.svg)
![diagram](https://github.com/pancsta/assets/blob/main/asyncmachine-go/diagrams/diagram_3.svg)

### [AOP handlers](/docs/manual.md#transition-handlers)

States are [Aspects](https://en.wikipedia.org/wiki/Aspect-oriented_programming) with Enter, State, Exit, and End handlers.

![](../../assets/asyncmachine-go/diagrams/diagram_4.svg)
![diagram](https://github.com/pancsta/assets/blob/main/asyncmachine-go/diagrams/diagram_4.svg)

### [Negotiation](/docs/manual.md#transition-lifecycle)

Transitions are cancellable (during the negotiation phase).

![](../../assets/asyncmachine-go/diagrams/diagram_5.svg)
![diagram](https://github.com/pancsta/assets/blob/main/asyncmachine-go/diagrams/diagram_5.svg)

### [Relations](/docs/manual.md#relations)

States are connected via Require, Remove, and Add relations.

![](../../assets/asyncmachine-go/diagrams/diagram_6.svg)
![diagram](https://github.com/pancsta/assets/blob/main/asyncmachine-go/diagrams/diagram_6.svg)

### [Subscriptions](/docs/manual.md#waiting)

Channel-broadcast waiting on clock values.

![](../../assets/asyncmachine-go/diagrams/diagram_7.svg)
![diagram](https://github.com/pancsta/assets/blob/main/asyncmachine-go/diagrams/diagram_7.svg)

### [Error handling](/docs/manual.md#error-handling)

Expand Down

0 comments on commit 9f3b6a1

Please sign in to comment.