A minimal concurrent worker queue in pure Go. Jobs are submitted to a buffered channel and processed in parallel by a pool of worker goroutines, with graceful shutdown via OS signals and context cancellation.
go run .Press Ctrl+C to shut down gracefully.
go test -v ./...| File | Role |
|---|---|
job.go |
Job definition and processing logic |
worker.go |
Worker goroutine |
dispatcher.go |
Worker pool and job queue management |
main.go |
Entry point and signal handling |