Package akka.compat

Class Future


  • public class Future
    extends java.lang.Object
    INTERNAL API

    Compatibility wrapper for scala.concurrent.Future to be able to compile the same code against Scala 2.12, 2.13

    Remove these classes as soon as support for Scala 2.12 is dropped!

    • Constructor Summary

      Constructors 
      Constructor Description
      Future()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T> scala.concurrent.Future<scala.Option<T>> find​(scala.collection.immutable.Iterable<scala.concurrent.Future<T>> futures, scala.Function1<T,​java.lang.Object> p, scala.concurrent.ExecutionContext executor)  
      static <T> scala.concurrent.Future<scala.Option<T>> find​(scala.collection.IterableOnce<scala.concurrent.Future<T>> futures, scala.Function1<T,​java.lang.Object> p, scala.concurrent.ExecutionContext executor)  
      static <T,​R>
      scala.concurrent.Future<R>
      fold​(scala.collection.immutable.Iterable<scala.concurrent.Future<T>> futures, R zero, scala.Function2<R,​T,​R> op, scala.concurrent.ExecutionContext executor)  
      static <T,​R>
      scala.concurrent.Future<R>
      fold​(scala.collection.IterableOnce<scala.concurrent.Future<T>> futures, R zero, scala.Function2<R,​T,​R> op, scala.concurrent.ExecutionContext executor)  
      static <T,​R>
      scala.concurrent.Future<R>
      reduce​(scala.collection.immutable.Iterable<scala.concurrent.Future<T>> futures, scala.Function2<R,​T,​R> op, scala.concurrent.ExecutionContext executor)  
      static <T,​R>
      scala.concurrent.Future<R>
      reduce​(scala.collection.IterableOnce<scala.concurrent.Future<T>> futures, scala.Function2<R,​T,​R> op, scala.concurrent.ExecutionContext executor)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Future

        public Future()
    • Method Detail

      • fold

        public static <T,​R> scala.concurrent.Future<R> fold​(scala.collection.IterableOnce<scala.concurrent.Future<T>> futures,
                                                                  R zero,
                                                                  scala.Function2<R,​T,​R> op,
                                                                  scala.concurrent.ExecutionContext executor)
      • fold

        public static <T,​R> scala.concurrent.Future<R> fold​(scala.collection.immutable.Iterable<scala.concurrent.Future<T>> futures,
                                                                  R zero,
                                                                  scala.Function2<R,​T,​R> op,
                                                                  scala.concurrent.ExecutionContext executor)
      • reduce

        public static <T,​R> scala.concurrent.Future<R> reduce​(scala.collection.IterableOnce<scala.concurrent.Future<T>> futures,
                                                                    scala.Function2<R,​T,​R> op,
                                                                    scala.concurrent.ExecutionContext executor)
      • reduce

        public static <T,​R> scala.concurrent.Future<R> reduce​(scala.collection.immutable.Iterable<scala.concurrent.Future<T>> futures,
                                                                    scala.Function2<R,​T,​R> op,
                                                                    scala.concurrent.ExecutionContext executor)
      • find

        public static <T> scala.concurrent.Future<scala.Option<T>> find​(scala.collection.IterableOnce<scala.concurrent.Future<T>> futures,
                                                                        scala.Function1<T,​java.lang.Object> p,
                                                                        scala.concurrent.ExecutionContext executor)
      • find

        public static <T> scala.concurrent.Future<scala.Option<T>> find​(scala.collection.immutable.Iterable<scala.concurrent.Future<T>> futures,
                                                                        scala.Function1<T,​java.lang.Object> p,
                                                                        scala.concurrent.ExecutionContext executor)