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

Redo/Repeat Backpressure #1583

Merged
merged 1 commit into from
Aug 14, 2014

Conversation

benjchristensen
Copy link
Member

Fix backpressure and memory leaks

This now works:

    public static void main(String[] args) {
        Observable<Integer> o1 = Observable.from(1, 1).concatWith(Observable.just(-1).repeat());
        Observable<Integer> o2 = Observable.from(2, 2, 2, 2);
        Observable.zip(o1, o2, (a, b) -> a + b).forEach(System.out::println);
    }

Fix backpressure and memory leaks

This now works:

    public static void main(String[] args) {
        Observable<Integer> o1 = Observable.from(1, 1).concatWith(Observable.just(-1).repeat());
        Observable<Integer> o2 = Observable.from(2, 2, 2, 2);
        Observable.zip(o1, o2, (a, b) -> a + b).forEach(System.out::println);
    }
@cloudbees-pull-request-builder

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

benjchristensen added a commit that referenced this pull request Aug 14, 2014
@benjchristensen benjchristensen merged commit 3f7ad8c into ReactiveX:master Aug 14, 2014
@benjchristensen benjchristensen deleted the repeat-concat branch August 14, 2014 19:57
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