You are building a backend service in Go that receives a slice of integer job IDs (e.g., [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]). Processing each job involves a simulated time-consuming operation (such as making an HTTP call or querying a database), which takes 500 milliseconds.
Processing 10 jobs sequentially takes roughly 5 seconds. To improve throughput, write a program that uses a worker pool of 3 concurrent goroutines to process all tasks in parallel.
package main