com.qifun.statelessFuture.ANormalForm

TryCatchFinally

final class TryCatchFinally[AwaitResult, TailRecResult] extends AbstractAwaitable[AwaitResult, TailRecResult]

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

Instance Constructors

  1. new TryCatchFinally(tryFuture: Awaitable[AwaitResult, TailRecResult], getCatcherFuture: Catcher[Awaitable[AwaitResult, TailRecResult]], finallyBlock: ⇒ Unit)

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. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. 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.

  6. def clone(): AnyRef

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

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

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

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

    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
  11. final def foreach(handler: (AwaitResult) ⇒ TailRecResult)(implicit catcher: Catcher[TailRecResult]): TailRecResult

    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
  12. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  15. final def map[ConvertedAwaitResult](converter: (AwaitResult) ⇒ ConvertedAwaitResult): Stateless[ConvertedAwaitResult, TailRecResult]

    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
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  19. final def onComplete(rest: (AwaitResult) ⇒ TailRec[TailRecResult])(implicit catcher: Catcher[TailRec[TailRecResult]]): TailRec[TailRecResult]

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

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

    Definition Classes
    TryCatchFinallyAwaitable
    Annotations
    @inline()
  20. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    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
    @throws( ... )
  25. final def withFilter(condition: (AwaitResult) ⇒ Boolean): Stateless[AwaitResult, TailRecResult]

    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 AbstractAwaitable[AwaitResult, TailRecResult]

Inherited from Stateless[AwaitResult, TailRecResult]

Inherited from Awaitable[AwaitResult, TailRecResult]

Inherited from AnyRef

Inherited from Any

Ungrouped