Hello, I have two `Channel`s, and I want to `.rece...
# coroutines
m
Hello, I have two `Channel`s, and I want to
.receive()
on both of them, so if there is anything in channel 1 or anything in channel 2 it resumes, but of course
.receive()
doesn't actually work since I can't call it on both. What should I be using here? The point here is that channel 1 is higher priority, so I want to get the next item, from channel 1 if there are any, and from channel 2 if channel 1 is empty.
m
That works! Thank you.