myanmarking
07/01/2020, 9:49 AMchannelFlow {
flowOf(1, 2, 3, 4)
.map { delay(100); it }
.collect { send(it) }
}
I mean, when the channelFlow get's cancelled, it also cancels the inner flow right ? Because both have the same scopepedro
07/01/2020, 10:07 AMmyanmarking
07/01/2020, 10:28 AMlouiscad
07/01/2020, 10:40 AMdelay
is cancellable, so if the flow is suspended here during cancellation, it will be cancelled properly