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

Add Publisher#merge(...) operators #2533

Merged
merged 4 commits into from
Mar 7, 2023
Merged

Conversation

Scottmitch
Copy link
Member

Motivation:
Merging Publishers of the same type can be done with operator composition. However it is not obvious what operators need to be used and adding another operator for this operation will aid discovery.

Motivation:
Merging Publishers of the same type can be done with
operator composition. However it is not obvious what
operators need to be used and adding another operator
for this operation will aid discovery.
Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

Thank you!

return publisher.mergeDelayError(TckUtils.newPublisher(elements));
}

@Ignore("merge operator proactively requests from upstream, and will not deliver errors until demand comes")
Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

@idelpivnitskiy idelpivnitskiy left a comment

Choose a reason for hiding this comment

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

🚀

@idelpivnitskiy idelpivnitskiy changed the title Add Publisher#mergeWith operators Add Publisher#merge(...) operators Mar 7, 2023
@Scottmitch Scottmitch merged commit 10973ca into apple:main Mar 7, 2023
@Scottmitch Scottmitch deleted the pub_merge branch March 7, 2023 21:01
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