Files
openide/platform/kernel/backend
Kate Botsman a5ab71839e IJPL-165422 Fix Rhizome breaks if exception is thrown under withKernel
`withKernel` method attaches current coroutine to core `kernelCoroutineScope`
If current coroutine is finished with an exception, the cancellation is propagated to the parent job.
This cancels `kernelCoroutineScope` and prevents further usage of the scope. The scope is never recreated, so it becomes impossible to use Rhizome after that.

As a solution, `kernelCoroutineScope` should be a supervisor to avoid it being canceled by children.
We can do that by creating `childScope` under the root scope.

GitOrigin-RevId: fc38d086f4f5b51538ce1173a25d457e1935bb1d
2024-11-14 16:38:44 +00:00
..