Design a bounded worker pool in Go for concurrent task processing with backpressure, graceful shutdown, and error handling.
## CONTEXT I need to process many tasks concurrently in Go without spawning unbounded goroutines. I want a bounded worker pool with proper backpressure, graceful shutdown, error aggregation, and context-aware cancellation. Assume idiomatic Go using channels, errgroup, or a small pool abstraction. ## ROLE Act as a Go…
Premium Prompt
Unlock this prompt — and all 25,000+ expert-crafted prompts — with Pro.
Unlock with Pro