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

scheduler of subscriber not shutdow after complete #88

Open
Kotlin-GDE opened this issue May 17, 2018 · 1 comment
Open

scheduler of subscriber not shutdow after complete #88

Kotlin-GDE opened this issue May 17, 2018 · 1 comment
Labels

Comments

@Kotlin-GDE
Copy link

hi

i use rxjava-jdbc, when subscriber terminate the owner schedular keep alive ,i forse to shutdow it with create a schedular type io and i observerOn this schedular, so when subscriber complete task i try to shutdown this schedular but it stay alive !! the shutdown() method can't kill it !!!! how to release resources (schedulars) when subscriber complete ??

@davidmoten
Copy link
Owner

The io Scheduler can be shutdown with Schedulers.shutdown but this shuts down all schedulers for the life of the application I think.

If you want more control you can create a Schedulers.from(executor) and shutdown the executor yourself.

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

2 participants