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

OperatorConcat #1074

Merged
merged 2 commits into from
Apr 24, 2014
Merged

OperatorConcat #1074

merged 2 commits into from
Apr 24, 2014

Conversation

akarnokd
Copy link
Member

Operator Concat

Issue #1060

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

RxJava-pull-requests #987 FAILURE
Looks like there's a problem with this pull request

@cloudbees-pull-request-builder

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

final NotificationLite<Observable<? extends T>> nl = NotificationLite.instance();
@Override
public Subscriber<? super Observable<? extends T>> call(final Subscriber<? super T> child) {
final SerializedSubscriber<T> s = new SerializedSubscriber<T>(child);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since concat is only ever subscribed to one Observable at a time, do we actually need to do serialization?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, because the outer observable can emit onError while the inner is running.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, it's the error case. Thanks!

@benjchristensen
Copy link
Member

I am merging despite having the question about serialization as that's an optimization question.

benjchristensen added a commit that referenced this pull request Apr 24, 2014
@benjchristensen benjchristensen merged commit 923ea73 into ReactiveX:master Apr 24, 2014
@akarnokd akarnokd deleted the OperatorConcat branch April 24, 2014 20:08
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