scala

Responder

object Responder extends AnyRef

This object contains utility methods to build responders.

Inherits

  1. AnyRef
  2. Any

Value Members

  1. def constant[A](x: A): Responder[A]

    Creates a responder that answer continuations with the constant a

  2. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

  3. def exec[A](x: ⇒ Unit): Boolean

    Executes x and returns true, useful as syntactic convenience in for comprehensions

  4. def hashCode(): Int

    Returns a hash code value for the object

  5. def loop[A](r: Responder[Unit]): Responder[Nothing]

  6. def loopWhile[A](cond: ⇒ Boolean)(r: Responder[Unit]): Responder[Unit]

  7. def run[A](r: Responder[A]): Option[A]

    runs a responder, returning an optional result

  8. def toString(): String

    Returns a string representation of the object