Channel Question: How do I suspend while waiting f...
# announcements
m
Channel Question: How do I suspend while waiting for a message from a channel that matches a predicate, in a repeatable way? When I use ReceiveChannel.first{} or ReceiveChannel.consumeAsFlow().first {} more than once, the second one throws an exception saying channel cancelled and no items in flow respectively.
d
while loop?
r
#coroutines would be a better place to ask
m
Ah, cool, haven't used slack much and didn't realize there were more channels than what is showed in the side bar by default.
👍 1