in scala
object Responder

`object` Responder
  `extends` java.lang.Object
  `with` scala.ScalaObject

  This object contains utility methods to build responders.

Author:
  Burak Emir
Version:
  1.0
See Also:
  class Responder
Since:
  revision 6897 (will be 2.1.1)

Constructor Summary
| `def` this

Def Summary
| `def` constant [a] (x: a) : scala.Responder[a] Creates a responder that answer continuations with the constant `a`.
| `def` exec [a] (x: => scala.Unit) : scala.Boolean Executes `x` and returns `true`, useful as syntactic convenience in for comprehensions.
| `def` loop [a] (r: scala.Responder[scala.Unit]) : scala.Responder[scala.Nothing]
| `def` loopWhile [a] (cond: => scala.Boolean)(r: scala.Responder[scala.Unit]) : scala.Responder[scala.Unit]
| `def` run [a] (r: scala.Responder[a]) : scala.Option[a] runs a responder, returning an optional result

Constructor Detail

`def` this

Def Detail

`def` constant [a](x: a): scala.Responder[a]

  Creates a responder that answer continuations with the constant `a`.

Parameters:
  `x -` ...
Returns:
  ...

`def` exec [a](x: => scala.Unit): scala.Boolean

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

Parameters:
  `x -` ...
Returns:
  ...

`def` loop [a](r: scala.Responder[scala.Unit]): scala.Responder[scala.Nothing]

`def` loopWhile [a](cond: => scala.Boolean)(r: scala.Responder[scala.Unit]): scala.Responder[scala.Unit]

`def` run [a](r: scala.Responder[a]): scala.Option[a]

  runs a responder, returning an optional result