scala-java8-compat
scala-java8-compat copied to clipboard
A Java 8 (and up) compatibility kit for Scala.
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...
It says [here](https://github.com/scala/scala-java8-compat/blob/master/src/main/scala/scala/compat/java8/FutureConverters.scala#L23) that the `CompletionStage` returned by `FutureConverters` doesn't support the `toCompletableFuture()` interface at all. However, it can be used fine to retrieve the value of a completed future,...
In `private class CF[T] extends CompletableFuture[T] with (Try[T] => Unit) {` as an example. So if a Java user downcasts to CompletableFuture, it won't go haywire.
See @paulp's comment here: https://github.com/scala/slip/issues/19#issuecomment-141782414 gist: https://gist.github.com/paulp/846dbd5a67c6bed3c2e9
## About this PR 📦 Updates [org.apache.commons:commons-lang3](https://commons.apache.org/proper/commons-lang/) from `3.12.0` to `3.15.0` ## Usage ✅ **Please merge!** I'll automatically update this PR to resolve conflicts as long as you don't change...