:mega: I’m working on a change to the behavior of ...
# coroutines
e
📣 I’m working on a change to the behavior of parent-child relations between coroutines for the upcoming release of
kotlinx.coroutines
. Parent will always wait for its children to complete. Details of the change are here: https://github.com/Kotlin/kotlinx.coroutines/issues/125 Please, comment if you don’t think it is a good idea.
👍 12
d
working on saturday? looks like you really love your job 😉 👍 btw, in new version, what will be happened with parent coroutine if we cancel it while child coroutine is suspended? is it cancels immediately or waits until all childs are done?
e
Canceling parent cancels all children, so child get cancelled out of its suspension, completes processing of whatever final sections it has, and then parent can compelete.
👌 1