Packages

final class BatchedFunction[A, B] extends (Seq[A]) ⇒ Future[B]

Helper to batch multiple asynchronous requests and ensure only one request is active at a time.

Linear Supertypes
(Seq[A]) ⇒ Future[B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BatchedFunction
  2. Function1
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BatchedFunction(fn: (Seq[A]) ⇒ CancelableFuture[B])(implicit ec: ExecutionContext)

    fn

    the function to batch. It must be safe to group together arguments from different requests into a single request and respond to the aggregated requests with the aggregated response.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def andThen[A](g: (Future[B]) ⇒ A): (Seq[A]) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  5. def apply(arguments: Seq[A]): Future[B]

    Call the function with the given arguments.

    Call the function with the given arguments.

    It is safe to rapidly call this function multiple times. The first call triggers the function and subsequent arguments will be batched up together for another run once the first asynchronous call completes.

    returns

    the response from calling the batched function with potentially previously and/or subsequently batched arguments.

    Definition Classes
    BatchedFunction → Function1
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def cancelCurrentRequest(): Unit
  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. def compose[A](g: (A) ⇒ Seq[A]): (A) ⇒ Future[B]
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  10. def currentFuture(): Future[B]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  13. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from (Seq[A]) ⇒ Future[B]

Inherited from AnyRef

Inherited from Any

Ungrouped