Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use SupervisorJob() instead of regular Job() in MainScope #49

Merged
merged 1 commit into from
Feb 15, 2020

Conversation

russhwolf
Copy link
Contributor

See https://kotlinlang.org/docs/reference/coroutines/exception-handling.html#supervision for details on how these differ. SupervisorJob is generally useful as a top-level scope for things like ViewModels and similar UI components because a failure of one of its child jobs won't cancel the other children.

See https://kotlinlang.org/docs/reference/coroutines/exception-handling.html#supervision for details on how these differ. SupervisorJob is generally useful as a top-level scope for things like ViewModels and similar UI components because a failure of one of its child jobs won't cancel the other children.
@kpgalligan kpgalligan merged commit d865ebc into master Feb 15, 2020
mreichelt pushed a commit to mreichelt/KaMPKit that referenced this pull request Feb 27, 2020
Use SupervisorJob() instead of regular Job() in MainScope
@russhwolf russhwolf deleted the rw/supervisor-job branch March 10, 2020 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants