Scala Library
|
|
scala/concurrent/ops.scala
]
object
ops
extends
AnyRefops
...Value Summary | |
val
|
defaultRunner : FutureTaskRunner |
Method Summary | |
def
|
future
[A](p : => A)(implicit runner : FutureTaskRunner) : () => A
|
def
|
getOrThrow [T <: java.lang.Throwable, A](x : Either[T, A]) : A |
def
|
par [A, B](xp : => A, yp : => B) : (A, B) |
def
|
replicate (start : Int, end : Int)(p : (Int) => Unit) : Unit |
def
|
spawn
(p : => Unit)(implicit runner : TaskRunner) : Unit
Evaluates an expression asynchronously.
|
def
|
tryCatch
[A](body : => A) : Either[java.lang.Throwable, A]
If expression computed successfully return it in
Right ,
otherwise return exception in Left . |
def
|
tryCatchEx [A](body : => A) : Either[java.lang.Exception, A] |
Methods inherited from AnyRef | |
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized |
Methods inherited from Any | |
==, !=, isInstanceOf, asInstanceOf |
Value Details |
Method Details |
def
tryCatch[A](body : => A) : Either[java.lang.Throwable, A]
Right
,
otherwise return exception in Left
.
def
tryCatchEx[A](body : => A) : Either[java.lang.Exception, A]
def
getOrThrow[T <: java.lang.Throwable, A](x : Either[T, A]) : A
def
spawn(p : => Unit)(implicit
runner : TaskRunner) : Unit
p -
the expression to evaluate
def
future[A](p : => A)(implicit
runner : FutureTaskRunner) : () => A
p -
...xp -
...yp -
...start -
...end -
...p -
...
Scala Library
|
|