d9 - channels. range over values in buffered channel
after channel is closed. is this a good practice?
note - you can only iterate over closed channels
othewise, you'd block waiting for more inputs
from the channel