|
|
Scala 2.3.3
|
object
Responder
extends java.lang.Object
with scala.ScalaObject
| 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 Detail |
def
constant
[a](x: a): scala.Responder[a]
a.x - ...
def
exec
[a](x: => scala.Unit): scala.Boolean
x and returns true, useful
as syntactic convenience in for comprehensions.x - ...
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]