We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6fce74 commit 0c8d315Copy full SHA for 0c8d315
1 file changed
README.md
@@ -22,6 +22,20 @@ let stateMachine = StateMachine(initial: .state1) {
22
}
23
```
24
25
+## Installation
26
+
27
+```swift
28
+let package = Package(
29
+ name: "Example",
30
+ dependencies: [
31
+ .package(url: "https://github.com/sideeffect-io/AsyncStateMachine.git", .upToNextMajor(from: "0.0.1"))
32
+ ],
33
+ targets: [
34
+ .target(name: "Example", dependencies: ["AsyncStateMachine"])
35
+ ]
36
+)
37
+```
38
39
## Key points:
40
- Each feature is a [Moore state machine](https://en.wikipedia.org/wiki/Moore_machine): no need for a global store
41
- State machines are declarative: a DSL offers a natural and concise syntax
0 commit comments