scala-java8-compat
scala-java8-compat copied to clipboard
Improve support for failed `CompletionStage`s
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).