Uh oh!
There was an error while loading. Please reload this page.
Operator: throttleWithTimeout - #366
Conversation
Another take on `throttle` … I believe this matches Rx.Net behavior. This will wait until timeout value has passed without any further values before emitting the received value.
benjchristensen
commented
Sep 10, 2013
This example will throttle by waiting until This will not emit anything if events keep firing shorter than the timeout. PublishSubject<Integer> o = PublishSubject.create();
o.throttleWithTimeout(500, TimeUnit.MILLISECONDS, s).subscribe(observer);
// send events with simulated time incrementss.advanceTimeTo(0, TimeUnit.MILLISECONDS);
o.onNext(1); // skipo.onNext(2); // delivers.advanceTimeTo(501, TimeUnit.MILLISECONDS);
o.onNext(3); // skips.advanceTimeTo(600, TimeUnit.MILLISECONDS);
o.onNext(4); // skips.advanceTimeTo(700, TimeUnit.MILLISECONDS);
o.onNext(5); // skipo.onNext(6); // deliver at 1300 after 500ms has passed since onNext(5)s.advanceTimeTo(1300, TimeUnit.MILLISECONDS);
o.onNext(7); // delivers.advanceTimeTo(1800, TimeUnit.MILLISECONDS);
o.onCompleted();Compare with #365 |
benjchristensen
commented
Sep 10, 2013
Please review this behavior and let me know if it is accurate and if the name is explanatory. |
cloudbees-pull-request-builder
commented
Sep 10, 2013
RxJava-pull-requests #259 SUCCESS |
samuelgruetter
commented
Sep 10, 2013
|
samuelgruetter
commented
Sep 10, 2013
that was fast :D |
benjchristensen
commented
Sep 10, 2013
Javadoc:
|
benjchristensen
commented
Sep 10, 2013
I have submitted 3 separate pull requests with different variants of
Variants are:
|
samuelgruetter
commented
Sep 10, 2013
Is this correct? |
benjchristensen
commented
Sep 10, 2013
Yes. |
* add Bulkhead annotation and aspect * fixed failing tests by separating retry backends. * extracted duplicated code to AnnotationExtractor * add Bulkhead annotation and aspect * fixed failing tests by separating retry backends. * extracted duplicated code to AnnotationExtractor * extracted duplicated code to AnnotationExtractor * added @AutoConfigureBefore and fixed wrong parameter names. * removed bulkhead health indicator * added dirtiesContext * fixed failing tests.
Another take on
throttle… I believe this matches Rx.Net behavior.This will wait until timeout value has passed without any further values before emitting the received value.