Use ranged for loop on channels