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

Avoid requesting the default schedulers if a scheduler is specified explicitly. #22

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

zubchenok
Copy link
Contributor

Currently if I specify a scheduler for RetryWhen, a default scheduler from Schedulers class is still requested by calling Schedulers.computation() method.

It is needed to avoid requesting of a default scheduler from Schedulers when another scheduler is specified in RetryWhen cause it calls RxJavaPlugins.onComputationHandler on every request while the requested default scheduler is not actually used.

Same for buffertofile.Options, but Schedulers.io() is used there.

@zubchenok zubchenok changed the title Avoid calling the default schedulers if a dedicated scheduler is specified. Avoid requesting the default schedulers if a scheduler is specified explicitly. Sep 25, 2021
@zubchenok
Copy link
Contributor Author

@davidmoten would you consider pull it?

@davidmoten
Copy link
Owner

Hi @zubchenok, yes I'll review it now, thanks for contributing!

Copy link
Owner

@davidmoten davidmoten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks!

@davidmoten davidmoten merged commit 189b035 into davidmoten:master Sep 28, 2021
@davidmoten
Copy link
Owner

I'll review state of dependencies and plugins and release shortly

@davidmoten
Copy link
Owner

Released to Maven Central in version 0.2.0.

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