s00500 / tracker

A simple construct to help you keeping track of goroutines properly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tracker

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.

About

A simple construct to help you keeping track of goroutines properly


Languages

Language:Go 100.0%