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!

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Future$ MODULE$
      Static reference to the singleton instance of this Scala object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Future$()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <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)  
      <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)  
      <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)  
      <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)  
      <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)  
      <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
    • Field Detail

      • MODULE$

        public static final Future$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Future$

        public Future$()
    • Method Detail

      • fold

        public <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 <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 <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 <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 <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 <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)