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

feat: Optimize recoverWith stream operator for single source. #923

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

He-Pin
Copy link
Member

@He-Pin He-Pin commented Jan 9, 2024

Motivation:
Event there is a dedicated recover which can provide a single value, user can sometime use recoverWith a Source.single too.
seems like Reactor's special onErrorReturn ,where a single value is recovered , we can avoid the sub materialization too.

Result:
Sub-materialization is avoid for recoverWith(Source.single(..))

@He-Pin He-Pin requested review from pjfanning and mdedetrich January 9, 2024 17:46
@He-Pin He-Pin added the t:stream Pekko Streams label Jan 9, 2024
@He-Pin He-Pin added this to the 1.1.0 milestone Jan 9, 2024
Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

lgtm

@He-Pin He-Pin merged commit ccce5c0 into apache:main Jan 9, 2024
18 checks passed
@He-Pin He-Pin deleted the optRecoverWith branch January 9, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
t:stream Pekko Streams
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants