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

Chain exception causes #145

Open
pkolaczk opened this issue Oct 23, 2015 · 0 comments
Open

Chain exception causes #145

pkolaczk opened this issue Oct 23, 2015 · 0 comments
Milestone

Comments

@pkolaczk
Copy link

When an asynchronous operation that is a part of another asynchronous operation fails, it would be very helpful to get a full stacktrace from the topmost async to the bottommost Future that reported the failure. Currently, only the bottommost failure is reported. This + lack of ability to debug + lack of try/catch makes async/await code very hard to debug.

Example:

def doSomethingAsync: Future[Int] = {
   async {
   // ... 
     throw new IOException("Something went wrong...")  // this line is reported properly
   }
}

def caller: Future[Int] = {
  async {
     await(doSomethingAsync)    // << I'd like this line to be reported in the stacktrace as well
  }
}
@retronym retronym added this to the 1.1 milestone Jun 24, 2020
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