go-concurrency-patterns icon indicating copy to clipboard operation
go-concurrency-patterns copied to clipboard

removing duplicate code with re-closing the task channel

Open lutersergei opened this issue 2 years ago • 0 comments

removing duplicate code with re-closing the task channel

for _, task := range tasks { taskCh <- task } close(taskCh)

lutersergei avatar Jun 30 '23 07:06 lutersergei