Crossposting: <https://github.com/Kotlin/kotlinx.c...
# coroutines
v
Of course, it’s lazy, but you can easily wrap channel + map/flatMap chain to lambda to make it lazy without
drain
v
Pipe hooks up a
ReceiveChannel
to a downstream
SendChannel
without transformation (equal to a
{it}
map).
map
returns a
ReceiveChannel
so its more like the proposed
transform
coroutine, although without additional state capability like
actor
has (see discussion on the github issue).