For-loop with channels
Add select clause for goroutines