We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OperatorZipIterable does not unsubscribe from its source, as illustrated by this example:
OperatorZipIterable
Action1<String> printer = new Action1<String>() { @Override public void call(String t1) { System.out.println(t1); } }; Func1<Integer, String> squareStr = new Func1<Integer, String>() { @Override public String call(Integer t1) { System.out.println("Omg I'm calculating so hard: " + t1 + "*" + t1 + "=" + (t1*t1)); return " " + (t1*t1); } }; @Test public void test() { Observable<Integer> o = Observable.from(1, 2, 3, 4, 5); Iterable<String> it = Arrays.asList("a", "b", "c", "d", "e"); o.map(squareStr).zip(it, concat2Strings).take(2).subscribe(printer); }
which outputs
Omg I'm calculating so hard: 1*1=1 1-a Omg I'm calculating so hard: 2*2=4 4-b Omg I'm calculating so hard: 3*3=9 Omg I'm calculating so hard: 4*4=16 Omg I'm calculating so hard: 5*5=25
The last 3 lines should not be there.
The text was updated successfully, but these errors were encountered:
The inner subscriber is not chained with the outer. I'll post a PR to fix the issue shortly.
Sorry, something went wrong.
That Pr is merged, so is this fixed?
Yes, closing.
No branches or pull requests
OperatorZipIterable
does not unsubscribe from its source, as illustrated by this example:which outputs
The last 3 lines should not be there.
The text was updated successfully, but these errors were encountered: