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

ExperimentalCoroutineDispatcher.close can shutdown enclosing thread of the same type #990

Closed
qwwdfsad opened this issue Feb 18, 2019 · 0 comments
Assignees
Labels

Comments

@qwwdfsad
Copy link
Collaborator

qwwdfsad commented Feb 18, 2019

 while (true) {
            Thread.sleep(100)
            CoroutineScope(Dispatchers.Default).launch {
                ExperimentalCoroutineDispatcher(4).close()
                println("created and closed")
            }
        }

will print created and closed N times (where N is cores count of target machine)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant