Packages

abstract class Foreach[-T] extends UnitFunctionBridge[T]

Callback for the Future.foreach operation that will be invoked if the Future that this callback is registered on becomes completed with a success. This method is essentially the same operation as onSuccess.

SAM (Single Abstract Method) class Java API

Annotations
@nowarn()
Source
Future.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Foreach
  2. UnitFunctionBridge
  3. Function1
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Foreach()

Abstract Value Members

  1. abstract def each(result: T): Unit

    This method will be invoked once when/if a Future that this callback is registered on becomes successfully completed

    This method will be invoked once when/if a Future that this callback is registered on becomes successfully completed

    Annotations
    @throws(classOf[Throwable])

Concrete Value Members

  1. def andThen[A](g: (BoxedUnit) => A): (T) => A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  2. final def apply(t: T): BoxedUnit
    Definition Classes
    UnitFunctionBridge → Function1
  3. final def apply$mcLD$sp(d: Double): BoxedUnit
    Definition Classes
    UnitFunctionBridge
  4. final def apply$mcLF$sp(f: Float): BoxedUnit
    Definition Classes
    UnitFunctionBridge
  5. final def apply$mcLI$sp(i: Int): BoxedUnit
    Definition Classes
    UnitFunctionBridge
  6. final def apply$mcLJ$sp(l: Long): BoxedUnit
    Definition Classes
    UnitFunctionBridge
  7. def compose[A](g: (A) => T): (A) => BoxedUnit
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  8. final def internal(t: T): Unit
    Definition Classes
    ForeachUnitFunctionBridge
  9. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any