Skip to content

nicolasassi/error-chan-return

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

error-chan-return

A simple pattern which I like to use when in need to use multiple Goroutines in a Loop and return its errors from channels without losing the capability to use sync.WaitGroup.

By running the main.go file everything will run as expected returning no errors.

By runnning the test_main.go there is a small chance that an error will return.

Any comments, issues, thoughts are warmly welcome :)

About

A pattern to use goroutines, waitGroups and return errors all at once

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages