Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wongoo committed Jan 12, 2022
1 parent ac3a0cd commit 82df63b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
gstop - stop goroutines/tasks securely, recursively.
grunner - run/stop goroutines/tasks securely, recursively.

```go
s1 := gstop.New()
s1 := grunner.New()

s1.Defer(func() {
fmt.Println("s1 stopped 2")
Expand Down Expand Up @@ -57,4 +57,4 @@ time.Sleep(time.Millisecond * 10)
// s1 stopped 2
// s3 stopped
// s2 stopped
```
```

0 comments on commit 82df63b

Please sign in to comment.