A simple construct to help you keeping track of goroutines properly

Primary LanguageGo


After having to work on many projects where it is important to cancel many goroutines and wait for them to finish. The more sublayers of such a "cancel-tree" a project has the more complicated it gets to keep track of them and add waitgroups for all of them. This is why I created this library to make this process a lot mor easy.

It basically combines a context and a waitgroup and makes handling them easier by providing a interface for starting go routines similar to go's x/sync Errgroup.

Feel free to comment about what could be made better or let me know if you like the design.