sync.WaitGroup for the worker pool, context for the HTTP server, and a signal channel — I've got the pieces but they compose awkwardly. Is there a canonical pattern for clean shutdown with partial work?
13
0 commentssync.WaitGroup for the worker pool, context for the HTTP server, and a signal channel — I've got the pieces but they compose awkwardly. Is there a canonical pattern for clean shutdown with partial work?