Is there a standard way to skip a select clause fo...
# coroutines
r
Is there a standard way to skip a select clause for a closed channel?
onReceiveOrNull
doesn't really work if I have multiple channels and want the rest to continue if any of them close (as
select
is biased to the first).
e
Not at the moment. We are planning to add something for this in the future.
r
Cool, thanks. I wasn't sure if I'd missed something.
e
Right now it is possible, but quite boiler-platish to track closing of multiple channels.
r
Fair enough. It's not urgent (I was just experimenting with different ideas), so I'll just wait for the suspend for the future version.
v
(as
select
is biased to the first).
also, we have
selectUnbiased
r
Is there much of an overhead for the random shuffling of the clauses? Sorry, dumb question