Is it possible to receive from a `Channel` without...
# coroutines
l
Is it possible to receive from a
Channel
without removing the element?
z
nope, there’s no peek
i
If you are making your Channel into a flow via
receiveAsFlow()
(as you should to process elements from it like the example in https://elizarov.medium.com/shared-flows-broadcast-channels-899b675e805c#49e3), then you could attach an
onEach
to the Flow to process each element coming through
l
ok thanks guys