We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a33a4d commit 0277fcdCopy full SHA for 0277fcd
1 file changed
README.md
@@ -1,2 +1,21 @@
1
# cc
2
A golang waitgroup with limits and error reporting
3
+
4
+Usage:
5
6
+```go
7
+import github.com/codeclysm/cc
8
9
+p := cc.New(4)
10
+p.Run(func() error {
11
+ return errors.New("fail1")
12
+})
13
14
+ return errors.New("fail2")
15
16
17
+ return nil
18
19
20
+errs := p.Wait() // returns a list of errors [fail1, fail2]
21
+```
0 commit comments