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

OperatorTimerAndSample #1098

Merged
merged 1 commit into from
Apr 30, 2014
Merged

Conversation

akarnokd
Copy link
Member

Operator Timer and Sample

Because there was a dependency in Sample towards the now removed Interval, I had to reimplement Sample in this PR as well.

Note that the new OperatorSampleWithTime schedules its first sample call before any upstream code is executed. Given the TestScheduler, a sample with 1sec and a timer with 1sec as well won't sample any value. The reason is that in the internal queue of TestScheduler, the sampler's action to take the sample is followed by the action to emit the timer's value.

@akarnokd akarnokd mentioned this pull request Apr 25, 2014
57 tasks
@cloudbees-pull-request-builder

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

@benjchristensen benjchristensen merged commit af02fd7 into ReactiveX:master Apr 30, 2014
@akarnokd akarnokd deleted the OperatorTimer branch May 6, 2014 13:34
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.

None yet

3 participants