mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
`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