scala.concurrent

trait TaskRunner

[source: scala/concurrent/TaskRunner.scala]

trait TaskRunner[T]
extends AsyncInvokable[() => T, T] with AnyRef
The TaskRunner trait...
Author
Philipp Haller
Direct Known Subclasses:
ThreadPoolRunner, ThreadRunner

Method Summary
def !! (task : () => T) : Future[T]
abstract def managedBlock (blocker : ManagedBlocker) : Unit
abstract def shutdown : Unit
abstract def submit (task : () => T) : Future[T]
protected def tryCatch [A](left : => A) : Either[A, java.lang.Exception]
If expression computed successfully return it in Left, otherwise return exception in Right.
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
abstract def submit(task : () => T) : Future[T]

abstract def shutdown : Unit

def !!(task : () => T) : Future[T]
Overrides
AsyncInvokable.!!

abstract def managedBlock(blocker : ManagedBlocker) : Unit

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