https://kotlinlang.org logo
#coroutines
Title
# coroutines
v

venkat

04/07/2018, 10:50 PM
Of course, it’s lazy, but you can easily wrap channel + map/flatMap chain to lambda to make it lazy without
drain
v

venkat

04/09/2018, 1:38 PM
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).
2 Views