scala/scala-async

How should we handle exceptional scenario with this library

lahirug opened this issue · 2 comments

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

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 :(

arguably a duplicate of #76