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

Feature request: Add Sink#orElse operator #987

Open
He-Pin opened this issue Jan 20, 2024 · 0 comments
Open

Feature request: Add Sink#orElse operator #987

He-Pin opened this issue Jan 20, 2024 · 0 comments
Labels
t:stream Pekko Streams

Comments

@He-Pin
Copy link
Member

He-Pin commented Jan 20, 2024

Motivation:
refs: #980

There is already a Flow#orElse operator, but we need another one but for Sink. and ZIO has a ZSink.orElse too, which will switch to another sink incase of failure/cancel.

I think we can just add something like that sink#orElse(secondary: Graph[SinkShape]).

Result:
An out box of fallback kind thing is covered. I have not check the FS2, but ZIO has this out of box, otherwise ,and an end user you will need to write 100+ lines of code I think.

@He-Pin He-Pin added the t:stream Pekko Streams label Jan 20, 2024
@He-Pin He-Pin changed the title Add Sink#orElse operator Feature request: Add Sink#orElse operator Jan 20, 2024
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

No branches or pull requests

1 participant