Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0x9n0p authored Jan 14, 2022
1 parent 1c817c7 commit 387494f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# pooli
Worker pool with dynamic size

```go
p := pooli.Open(5)
p.Start()

p.SendTask(pooli.NewTask(func(ctx context.Context) error {
fmt.Println("task")
return nil
}))

p.SetGoroutines(1)
```

0 comments on commit 387494f

Please sign in to comment.