go-concurrency-patterns
go-concurrency-patterns copied to clipboard
removing duplicate code with re-closing the task channel
removing duplicate code with re-closing the task channel
for _, task := range tasks { taskCh <- task } close(taskCh)