public class AkkaFutureUtils extends Object
Constructor and Description |
---|
AkkaFutureUtils() |
Modifier and Type | Method and Description |
---|---|
static <T,U extends T> |
toJava(scala.concurrent.Future<U> scalaFuture)
Converts a Scala
Future to a CompletableFuture . |
public static <T,U extends T> CompletableFuture<T> toJava(scala.concurrent.Future<U> scalaFuture)
Future
to a CompletableFuture
.T
- type of the future valueU
- type of the original futurescalaFuture
- to convert to a Java 8 CompletableFutureCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.