Update README.md

This commit is contained in:
Zach Eriksen 2021-03-01 22:03:42 -06:00 committed by GitHub
parent 830f65cc8f
commit bbad8c3d0b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 15 additions and 1 deletions

View File

@ -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
```swift