zak.taccardi
12/27/2018, 7:20 PMactor
that I can cancel and restart. Is that possible?louiscad
12/27/2018, 7:22 PMSendChannel
that delegates to an actor
you can swap from under.zak.taccardi
12/27/2018, 7:24 PMlouiscad
12/27/2018, 7:24 PMzak.taccardi
12/27/2018, 7:29 PMlouiscad
12/27/2018, 7:44 PMAllan Wang
12/27/2018, 7:51 PMsuspend
and extend CoroutineScope
at the same time? The action looks like it should be just suspend
since it's long runningzak.taccardi
12/27/2018, 7:55 PMlaunch
inside the actor
uli
12/27/2018, 7:55 PMlouiscad
12/27/2018, 8:29 PMconsumeEachAndCancelPrevious
) is just a suspend function and creates its own local scope. The other one above it is a solution to this issue: https://github.com/Kotlin/kotlinx.coroutines/issues/328zak.taccardi
12/27/2018, 9:26 PM