Implements a dynamic work pool of goroutines to perform tasks.