Scala Library
|
|
scala/concurrent/ThreadPoolRunner.scala
]
trait
ThreadPoolRunner
extends
FutureTaskRunner with
AnyRefThreadPoolRunner
trait uses
a java.util.concurrent.ExecutorService
to run submitted tasks.Type Summary | |
type
|
Future |
type
|
Task |
Method Summary | |
def
|
execute [S](task : <refinement>[S]) : Unit |
protected abstract def
|
executor : java.util.concurrent.ExecutorService |
implicit def
|
functionAsTask [S](fun : () => S) : <refinement>[S] |
implicit def
|
futureAsFunction [S](x : java.util.concurrent.Future[S]) : () => S |
def
|
managedBlock (blocker : ManagedBlocker) : Unit |
def
|
submit [S](task : <refinement>[S]) : java.util.concurrent.Future[S] |
Methods inherited from TaskRunner | |
shutdown (abstract), tryCatch |
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 |
Method Details |
implicit
def
functionAsTask[S](fun : () => S) : <refinement>[S]
implicit
def
futureAsFunction[S](x : java.util.concurrent.Future[S]) : () => S
protected abstract
def
executor : java.util.concurrent.ExecutorService
def
submit[S](task : <refinement>[S]) : java.util.concurrent.Future[S]
def
execute[S](task : <refinement>[S]) : Unit
def
managedBlock(blocker : ManagedBlocker) : Unit
Scala Library
|
|