scala.concurrent

trait TaskRunner

[source: scala/concurrent/TaskRunner.scala]

trait TaskRunner
extends AnyRef
The TaskRunner trait...
Author
Philipp Haller
Direct Known Subclasses:
FutureTaskRunner

Type Summary
abstract type Task
Method Summary
abstract def execute [S](task : Task[S]) : Unit
implicit abstract def functionAsTask [S](fun : () => S) : Task[S]
abstract def shutdown : Unit
protected def tryCatch [A](body : => A) : Either[java.lang.Exception, A]
If expression computed successfully return it in Right, otherwise return exception in Left.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Type Details
abstract type Task

Method Details
implicit abstract def functionAsTask[S](fun : () => S) : Task[S]

abstract def execute[S](task : Task[S]) : Unit

abstract def shutdown : Unit

protected def tryCatch[A](body : => A) : Either[java.lang.Exception, A]
If expression computed successfully return it in Right, otherwise return exception in Left.