Skip to content

Improve supervisorScope KDoc #2755

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

Closed
wants to merge 1 commit into from

Conversation

erikhuizinga
Copy link

@erikhuizinga erikhuizinga commented Jun 10, 2021

Previously, the KDoc wasn't explicit about the behaviour of supervisorScope, which is similar to the behaviour of the coroutineScope function.
This was confusing (at least for me), for example here:
https://kotlinlang.slack.com/archives/C1CFAFJSK/p1623338894383500?thread_ts=1623318861.372800&cid=C1CFAFJSK

This commit intends to redirect the reader to the KDoc of coroutineScope, where all behaviour details are explained very well.
The difference in behaviour is preserved, including the important reference to the SupervisorJob documentation.


I ran ./gradlew knit successfully locally, but there were no additional changes to commit.

Previously, the KDoc wasn't explicit about the behaviour of `supervisorScope`, which is similar to the behaviour of the `coroutineScope` function.
This was confusing (at least for me), for example here:
https://kotlinlang.slack.com/archives/C1CFAFJSK/p1623338894383500?thread_ts=1623318861.372800&cid=C1CFAFJSK

This commit intends to redirect the reader to the KDoc of `coroutineScope`, where all behaviour details are explained very well.
The difference in behaviour is preserved, including the important reference to the `SupervisorJob` documentation.
@qwwdfsad
Copy link
Member

Thanks for pointing it out!

Rephrased our docs and opened #2757

@qwwdfsad qwwdfsad closed this Jun 11, 2021
@erikhuizinga erikhuizinga deleted the patch-2 branch June 11, 2021 16:36
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