Skip to content

Coroutine scheduler is used by default instead of deprecated CommonPool #633

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

Merged
merged 2 commits into from
Sep 28, 2018

Conversation

elizarov
Copy link
Contributor

  • Documentation and guide are updated correspondingly
  • "DefaultDispatcher" is used as a public name of the default impl
  • Implementation is integrated with virtual time-source
  • Shutdown sequence is reimplemented in a safe way for tests,
    makes "close" safe to use on custom instances.
  • "close" on DefaultDispatcher throws exception just in case
  • -Dkotlinx.coroutines.scheduler=off can be used to switch back to
    CommonPool

Fixes #198

* Documentation and guide are updated correspondingly
* "DefaultDispatcher" is used as a public name of the default impl
* Implementation is integrated with virtual time-source
* Shutdown sequence is reimplemented in a safe way for tests,
  makes "close" safe to use on custom instances.
* "close" on DefaultDispatcher throws exception just in case
* -Dkotlinx.coroutines.scheduler=off can be used to switch back to
  CommonPool

Fixes #198
@elizarov elizarov merged commit 8339511 into develop Sep 28, 2018
@elizarov elizarov deleted the default-scheduler branch September 28, 2018 15:19
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