scala-java8-compat icon indicating copy to clipboard operation
scala-java8-compat copied to clipboard

Improve support for failed `CompletionStage`s

Open jlprat opened this issue 6 years ago • 0 comments

Currently when a CompletionStage fails with a RuntimeException this is wrapped in a CompletionException. When converting CompletionStage to a Scala Future this is not unwrapped thus making it cumbersome recover from it (with an extra recover step that throws the original wrapped exception for example).

jlprat avatar Sep 06 '18 13:09 jlprat