Support receiving data as an iterator. for example:

for _, msg in channel() do
    print(msg)
end