Skip to content

Commit

Permalink
bonsai
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Feb 7, 2024
1 parent 30dda7a commit 1965aef
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,16 @@ Use [donegroup.WithCancel](https://pkg.go.dev/github.com/k1LoW/donegroup#WithCan

Then, it can wait for the cleanup processes associated with the context using [donegroup.Wait](https://pkg.go.dev/github.com/k1LoW/donegroup#Wait).

<table>
<tr>
<th> from </th><td></td><th> to </th>
</tr>
<tr>
<td>
**from:**

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

</td>
<td>
</td>
<td>

**to:**

``` go
ctx, cancel := donegroup.WithCancel(context.Background())
Expand All @@ -38,10 +31,6 @@ defer func() {
}()
```

</td>
</tr>
</table>

### Basic usage ( [donegroup.Cleanup](https://pkg.go.dev/github.com/k1LoW/donegroup#Cleanup) )

```go
Expand Down

0 comments on commit 1965aef

Please sign in to comment.