Open
Description
In a number of places in our codebase, we just fire up goroutines and never account for them being done with a WaitGroup, etc.
This means some stay running after a test or shutdown, sometimes causing mysteries or data races.
I'd like to have a goroutine tracker type that goroutine-creating components to use that they launch goroutines via, and have it provide accounting of what's outstanding for tests and graceful shutdown.
I've written a few variants of this over time but after doing it yet again, I think it's time to pull it out into a type and reuse it in more places.
/cc @sailorfrag
Metadata
Assignees
Labels
No labels