Closing the channel is racey and can lead to a panic on exit. Instead rely on context cancellation to know if workers should exit.
Closing the channel is racey and can lead to a panic on exit. Instead rely on context cancellation to know if workers should exit.