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

Scheduling actions periodically #246

Merged
merged 11 commits into from
May 1, 2013

Conversation

jmhofer
Copy link
Contributor

@jmhofer jmhofer commented Apr 26, 2013

As proposed earlier by @mairbek in #228 (comment), I extended the Scheduler by yet another method schedulePeriodically. This has a default implementation that works via recursion. I tried it out with all existing schedulers, and it seems to work fine. I also wrote a unit test for it using the TestScheduler.

I switched scheduled executor services to use their fixed rate scheduling instead of the recursive default implementation. And I also switched the OperationInterval implementation to use periodic scheduling.

@cloudbees-pull-request-builder

RxJava-pull-requests #106 SUCCESS
This pull request looks good

@benjchristensen
Copy link
Member

From what I can tell this looks functionally correct and like a valid addition (based on previous discussions in #228) so I'm merging.

Thank you @jmhofer, this is a nice addition and good quality code.

benjchristensen added a commit that referenced this pull request May 1, 2013
@benjchristensen benjchristensen merged commit cec81cb into ReactiveX:master May 1, 2013
rickbw pushed a commit to rickbw/RxJava that referenced this pull request Jan 9, 2014
jihoonson pushed a commit to jihoonson/RxJava that referenced this pull request Mar 6, 2020
make async retrofit call not make the request when circuit is open
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.

3 participants