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

Completes.recoverFrom() should support a handler that returns a Completes<Y> not just Y #13

Open
bwehrle opened this issue Apr 29, 2019 · 0 comments

Comments

@bwehrle
Copy link

bwehrle commented Apr 29, 2019

Scenario:

  • Complete needs to be turned into a Completes
  • If there is an error, invoke a .recoverFrom()

Imagine that the function inside the recovery handler returns a Completes

From inside the recoverFrom(), I would not want to do a await() on the inner Completes, I'd rather return the Completes directly, since that is what the outer code block is expecting as a result. Otherwise I need to do some kind of await() call just to return a Y which will just be turned into a Completes with the outcome already provided, making the thread block.

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

1 participant