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

How should we handle exceptional scenario with this library #137

Closed
lahirug opened this issue Aug 13, 2015 · 2 comments
Closed

How should we handle exceptional scenario with this library #137

lahirug opened this issue Aug 13, 2015 · 2 comments

Comments

@lahirug
Copy link

lahirug commented Aug 13, 2015

I can see that cannot put try/finally block, how should I handle that ?

@pkolaczk
Copy link

Adding to this question. How do I handle a failed Future under await?

async {
  val result = await { thisMayReturnFailedFuture }
  ...  // if (previousFailed) doSth else doSthElse
}

Putting it into a try/catch block is not allowed :(

@SethTisue
Copy link
Member

arguably a duplicate of #76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants