Skip to content

docs: Update Coroutine context and dispatchers doc #3202

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

Pearcekieser
Copy link

I think flipping the order of the print and delay makes it more clear that one coroutine is canceled while the other lives on. Also I added a note that explains why the delay is necessary. The need for the second delay wasn't immediately clear to me on first read of the coroutine guide.

I think flipping the order of the print and delay makes it more clear that one coroutine is canceled while the other lives on.  Also I added a note that explains why the delay is necessary.  The need for the second delay wasn't immediately clear to me on first read of the coroutine guide.
@qwwdfsad
Copy link
Collaborator

Thanks for the idea! Opened #3292 with a full update

@qwwdfsad qwwdfsad closed this May 18, 2022
qwwdfsad added a commit that referenced this pull request May 19, 2022
* Update guide example to better reflect the intent

Based on #3202
pablobaxter pushed a commit to pablobaxter/kotlinx.coroutines that referenced this pull request Sep 14, 2022
* Update guide example to better reflect the intent

Based on Kotlin#3202
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