Coordinate concurrent work and cancellation
2 articles
-
Coordinate concurrent work and cancellation
Build a Bounded Go Worker Pool That Cancels and Shuts Down Cleanly
Use a fixed number of workers, a finite jobs queue, and cooperative cancellation to run jobs without leaving the producer or workers behind.
-
Coordinate concurrent work and cancellation
Using context.Context in Go: Cancellation, Timeouts, and Request-Scoped Values
Learn how to propagate cancellation and deadlines through Go code, clean up derived contexts, and avoid common API design mistakes.


