You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have quite often the use case that I have a Future, that i want to recover in case a certain Exception was thrown.
This is currently only with future.RecoverWith() possible. But this adds bulkiness, because you have to create and return a new Future.
Hello,
I have quite often the use case that I have a Future, that i want to recover in case a certain Exception was thrown.
This is currently only with future.RecoverWith() possible. But this adds bulkiness, because you have to create and return a new Future.
So currently the code looks like that:
Is it possible that the recover method can be changed to accept a CheckedFunction instead?
Then it would be possible to write following code:
If so I could assist with an PullRequest.
Thanks
The text was updated successfully, but these errors were encountered: