tseisel
07/05/2020, 12:32 PMFlow.cancellable operator ? What kind of use case does it solve ?louiscad
07/05/2020, 1:32 PMelizarov
07/05/2020, 6:39 PMoctylFractal
07/05/2020, 6:40 PMlouiscad
07/05/2020, 6:49 PMtseisel
07/05/2020, 8:03 PMemit and propagate it when applicable, which is not performed otherwise for performance reasons.
Does this apply for thread-blocking code as well ? Thread.sleep show a different behavioroctylFractal
07/05/2020, 8:04 PMrunInterruptible -- cancellation must be picked up by checking isActive, which is impossible for anything that isn't depending on the coroutines library (this means that suspend functions defined in stdlib also are not cancellable)octylFractal
07/05/2020, 8:07 PMrunInterruptible registers a handler on the appropriate Job that calls Thread.interrupt() on cancellationlouiscad
07/05/2020, 10:32 PMrunInterruptible come from?octylFractal
07/05/2020, 10:34 PMlouiscad
07/05/2020, 10:38 PM