com.qifun.statelessFuture.Future

FromConcurrentFuture

final class FromConcurrentFuture[AwaitResult] extends Stateful[AwaitResult]

Forwards all Future.Stateful API to the underlying scala.concurrent.Future.

Linear Supertypes
Awaitable.Stateful[AwaitResult, Unit], Awaitable[AwaitResult, Unit], AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FromConcurrentFuture
  2. Stateful
  3. Awaitable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FromConcurrentFuture(underlying: scala.concurrent.Future[AwaitResult])(implicit executor: ExecutionContext)

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. final def await: AwaitResult

    Suspends this Awaitable until the asynchronous operation being completed, and then returns the result of the asynchronous operation.

    Suspends this Awaitable until the asynchronous operation being completed, and then returns the result of the asynchronous operation.

    Definition Classes
    Awaitable
    Annotations
    @compileTimeOnly( ... )
    Note

    This method must be in a Future.apply block or Awaitable.apply block.

    ,

    The code after await and the code before await may be evaluated in different threads.

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  11. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def flatMap[ConvertedAwaitResult](converter: (AwaitResult) ⇒ Awaitable[ConvertedAwaitResult, Unit]): Awaitable.Stateless[ConvertedAwaitResult, Unit]

    Returns a new Awaitable.Stateless composed of this Awaitable and the converter.

    Returns a new Awaitable.Stateless composed of this Awaitable and the converter. The new Awaitable.Stateless will pass the original result to convert when the original asynchronous operation being completed, or pass the exception to catcher when the original asynchronous operation being failed.

    Definition Classes
    Awaitable
  13. final def foreach(handler: (AwaitResult) ⇒ Unit)(implicit catcher: Catcher[Unit]): Unit

    Asks this Awaitable to pass result to handler when the asynchronous operation being completed, or to pass the exception to catcher when the asynchronous operation being failed, and starts the asynchronous operation if this Awaitable is an Awaitable.Stateless.

    Asks this Awaitable to pass result to handler when the asynchronous operation being completed, or to pass the exception to catcher when the asynchronous operation being failed, and starts the asynchronous operation if this Awaitable is an Awaitable.Stateless.

    Definition Classes
    Awaitable
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def isCompleted: Boolean

    Tests if this Awaitable.Stateful is completed.

    Tests if this Awaitable.Stateful is completed.

    Definition Classes
    Stateful
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. final def map[ConvertedAwaitResult](converter: (AwaitResult) ⇒ ConvertedAwaitResult): Awaitable.Stateless[ConvertedAwaitResult, Unit]

    Returns a new Awaitable.Stateless composed of this Awaitable and the converter.

    Returns a new Awaitable.Stateless composed of this Awaitable and the converter. The new Awaitable.Stateless will pass the original result to convert when the original asynchronous operation being completed, or pass the exception to catcher when the original asynchronous operation being failed.

    Definition Classes
    Awaitable
  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. final def onComplete(body: (AwaitResult) ⇒ TailRec[Unit])(implicit catcher: Catcher[TailRec[Unit]]): TailRec[Unit]

    Like foreach, except this method supports tail-call optimization.

    Like foreach, except this method supports tail-call optimization.

    Definition Classes
    FromConcurrentFutureAwaitable
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  24. def toString(): String

    Definition Classes
    AnyRef → Any
  25. final def value: Option[Try[AwaitResult]]

    The result of the asynchronous operation.

    The result of the asynchronous operation.

    Definition Classes
    FromConcurrentFutureStateful
  26. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def withFilter(condition: (AwaitResult) ⇒ Boolean): Awaitable.Stateless[AwaitResult, Unit]

    Returns a new Awaitable.Stateless composed of this Awaitable and the condition.

    Returns a new Awaitable.Stateless composed of this Awaitable and the condition. The new Awaitable.Stateless will pass the original result to condition when the original asynchronous operation being completed, or pass the exception to catcher when the original asynchronous operation being failed.

    Definition Classes
    Awaitable
    Exceptions thrown
    java.util.NoSuchElementException

    Passes to catcher if the condition returns false.

Inherited from Awaitable.Stateful[AwaitResult, Unit]

Inherited from Awaitable[AwaitResult, Unit]

Inherited from AnyRef

Inherited from Any

Ungrouped