Class

com.thoughtworks.zerocost.continuation

ContinuationOps

Related Doc: package continuation

Permalink

implicit final class ContinuationOps[R, A] extends AnyVal

Extension methods for Continuation

Source
continuation.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContinuationOps
  2. AnyVal
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ContinuationOps(underlying: Continuation[R, A])

    Permalink

Value Members

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

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ContinuationOps[R, A] to any2stringadd[ContinuationOps[R, A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (ContinuationOps[R, A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ContinuationOps[R, A] to ArrowAssoc[ContinuationOps[R, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    Any
  7. def ensuring(cond: (ContinuationOps[R, A]) ⇒ Boolean, msg: ⇒ Any): ContinuationOps[R, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ContinuationOps[R, A] to Ensuring[ContinuationOps[R, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  8. def ensuring(cond: (ContinuationOps[R, A]) ⇒ Boolean): ContinuationOps[R, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ContinuationOps[R, A] to Ensuring[ContinuationOps[R, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: Boolean, msg: ⇒ Any): ContinuationOps[R, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ContinuationOps[R, A] to Ensuring[ContinuationOps[R, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean): ContinuationOps[R, A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from ContinuationOps[R, A] to Ensuring[ContinuationOps[R, A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from ContinuationOps[R, A] to StringFormat[ContinuationOps[R, A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  12. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. def onComplete(continue: (A) ⇒ R): R

    Permalink

    Runs the underlying continuation.

    Runs the underlying continuation.

    continue

    the callback function that will be called once the underlying continuation complete.

    Annotations
    @inline()
    Note

    The JVM call stack will grow if there are recursive calls to onComplete in continue. A StackOverflowError may occurs if the recursive calls are very deep.

    See also

    safeOnComplete in case of StackOverflowError.

  15. def reset(implicit aAsR: <:<[A, R]): R

    Permalink
    Annotations
    @inline()
  16. def safeOnComplete(continue: (A) ⇒ TailRec[R]): TailRec[R]

    Permalink

    Runs the underlying continuation like onComplete, except this safeOnComplete is stack-safe.

    Runs the underlying continuation like onComplete, except this safeOnComplete is stack-safe.

    Annotations
    @inline()
  17. def toString(): String

    Permalink
    Definition Classes
    Any
  18. val underlying: Continuation[R, A]

    Permalink
  19. def [B](y: B): (ContinuationOps[R, A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from ContinuationOps[R, A] to ArrowAssoc[ContinuationOps[R, A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from AnyVal

Inherited from Any

Inherited by implicit conversion any2stringadd from ContinuationOps[R, A] to any2stringadd[ContinuationOps[R, A]]

Inherited by implicit conversion StringFormat from ContinuationOps[R, A] to StringFormat[ContinuationOps[R, A]]

Inherited by implicit conversion Ensuring from ContinuationOps[R, A] to Ensuring[ContinuationOps[R, A]]

Inherited by implicit conversion ArrowAssoc from ContinuationOps[R, A] to ArrowAssoc[ContinuationOps[R, A]]

Ungrouped