Skip to content

Commit

Permalink
update README too
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Oct 5, 2024
1 parent b7a4641 commit e8a604a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ A task is expressed as a `func() error`, and is added to a group using the `Go`
method:

```go
g := taskgroup.New(nil).Go(myTask)
var g taskgroup.Group
g.Go(myTask)
```

Any number of tasks may be added, and it is safe to do so from multiple
Expand Down

0 comments on commit e8a604a

Please sign in to comment.