Update README.md
This commit is contained in:
parent
830f65cc8f
commit
bbad8c3d0b
16
README.md
16
README.md
|
@ -1,4 +1,18 @@
|
||||||
# Chain
|
# Chain ⛓
|
||||||
|
|
||||||
|
*Chain of events*
|
||||||
|
|
||||||
|
Use an enum to structure the call stack.
|
||||||
|
|
||||||
|
```swift
|
||||||
|
public indirect enum Chain {
|
||||||
|
case end
|
||||||
|
case complete(E.Function?)
|
||||||
|
case link(E.Function, Chain)
|
||||||
|
case background(E.Function, Chain)
|
||||||
|
case multi([Chain])
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
## Example Code
|
## Example Code
|
||||||
```swift
|
```swift
|
||||||
|
|
Loading…
Reference in New Issue