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

BindOnFailure? #459

Open
dday4thedeceiver opened this issue Oct 31, 2022 · 1 comment
Open

BindOnFailure? #459

dday4thedeceiver opened this issue Oct 31, 2022 · 1 comment

Comments

@dday4thedeceiver
Copy link

dday4thedeceiver commented Oct 31, 2022

What I'm trying to do is to get back on the Success track from Failure track. If this operation has failed, try this other one instead while moving to a new type.

Seems like, at least with match, I can return a K from a T, but not Result<K>. Or did I completely miss it?

@hankovich
Copy link
Collaborator

Hi, it looks Compensate overloads will perfectly feed your needs.

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

No branches or pull requests

2 participants