Skip to content
/ cc Public

A golang waitgroup with limits and error reporting

License

Notifications You must be signed in to change notification settings

codeclysm/cc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

cc

A golang waitgroup with limits and error reporting

Usage:

import github.com/codeclysm/cc

p := cc.New(4)
p.Run(func() error {
	return errors.New("fail1")
})
p.Run(func() error {
	return errors.New("fail2")
})
p.Run(func() error {
	return nil
})

errs := p.Wait() // returns a list of errors [fail1, fail2]

About

A golang waitgroup with limits and error reporting

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages