Scala Library
|
|
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
|
|