scala.concurrent

object ops

[source: scala/concurrent/ops.scala]

object ops
extends AnyRef
The object ops ...
Author
Martin Odersky, Stepan Koltsov, Philipp Haller
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
val defaultRunner : FutureTaskRunner

Method Details
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]

def getOrThrow[T <: java.lang.Throwable, A](x : Either[T, A]) : A

def spawn(p : => Unit)(implicit runner : TaskRunner) : Unit
Evaluates an expression asynchronously.
Parameters
p - the expression to evaluate

def future[A](p : => A)(implicit runner : FutureTaskRunner) : () => A
Parameters
p - ...
Returns
...

def par[A, B](xp : => A, yp : => B) : (A, B)
Parameters
xp - ...
yp - ...
Returns
...

def replicate(start : Int, end : Int)(p : (Int) => Unit) : Unit
Parameters
start - ...
end - ...
p - ...