A small Go worker pool that shuts down cleanly
Forty lines, a context and a WaitGroup. A worker pool that drains its jobs on SIGTERM instead of dropping them.
8 min read
~/blog $ ls --by-year
Every post on Stack & Heap, newest first. Pick a topic to narrow it down.
1 post tagged #go · clear
Forty lines, a context and a WaitGroup. A worker pool that drains its jobs on SIGTERM instead of dropping them.
8 min read