Skip to content

Commit

Permalink
Update example in README
Browse files Browse the repository at this point in the history
  • Loading branch information
chriso committed Nov 18, 2023
1 parent 5760ada commit 59de070
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,8 @@ func main() {
if !errors.Is(err, fs.ErrNotExist) {
log.Fatal(err)
}
} else {
if _, err := coro.Context().Unmarshal(b); err != nil {
log.Fatal(err)
}
} else if err := coro.Context().Unmarshal(b); err != nil {
log.Fatal(err)
}

defer func() {
Expand Down Expand Up @@ -308,7 +306,7 @@ More examples of how to use durable coroutines can be found in [examples](./exam

#### Extend serialization

`coroutine` is able to seamlessly serialized and deserialize most types by
`coroutine` is able to seamlessly serialize and deserialize most types by
default. However there are times when you may want to control the serialization
of specific types. For example, `chan` values are not supported, or you may
decide that some values need specific logic to be functional upon
Expand Down

0 comments on commit 59de070

Please sign in to comment.