Scala Library Documentation
|
|
scala/Responder.scala
]
object
Responder
extends
AnyRefMethod Summary | |
def
|
constant
[a](x : a) : Responder[a]
Creates a responder that answer continuations with the constant
a . |
def
|
exec
[a](x : => Unit) : Boolean
Executes
x and returns true , useful
as syntactic convenience in for comprehensions. |
def
|
loop [a](r : Responder[Unit]) : Responder[Nothing] |
def
|
loopWhile [a](cond : => Boolean)(r : Responder[Unit]) : Responder[Unit] |
def
|
run
[a](r : Responder[a]) : Option[a]
runs a responder, returning an optional result
|
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Method Details |
a
.x -
...x
and returns true
, useful
as syntactic convenience in for comprehensions.x -
...
Scala Library Documentation
|
|