Skip to content

Commit

Permalink
bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Jun 2, 2024
1 parent d9bc35e commit 66bd5cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ gantt
```

```go
ctx, cancel := WithCancel(context.Background())
ctx, cancel := donegroup.WithCancel(context.Background())

// Cleanup process of some kind
if err := Cleanup(ctx, func() error {
if err := donegroup.Cleanup(ctx, func() error {
fmt.Println("cleanup start")
for i := 0; i < 10; i++ {
time.Sleep(2 * time.Millisecond)
Expand Down

0 comments on commit 66bd5cf

Please sign in to comment.