Scala Library
|
|
class
SingleThreadedScheduler
extends
ISchedulerValue Summary | |
protected val
|
maxNesting
: Int
The maximum number of nested tasks that are run
without unwinding the call stack.
|
Method Summary | |
def
|
execute
(fun : => Unit) : Unit
Submits a closure for execution.
|
def
|
execute
(task : java.lang.Runnable) : Unit
Submits a
Runnable for execution. |
def
|
isActive
: Boolean
When the scheduler is active, it can execute tasks.
|
def
|
managedBlock (blocker : ManagedBlocker) : Unit |
def
|
newActor
(actor : Reactor) : Unit
Registers a newly created actor with this scheduler.
|
def
|
onTerminate
(actor : Reactor)(f : => Unit) : Unit
Registers a closure to be executed when the specified
actor terminates.
|
def
|
shutdown
: Unit
Shuts down the scheduler.
|
def
|
terminated
(actor : Reactor) : Unit
Unregisters an actor from this scheduler, because it
has terminated.
|
Methods inherited from IScheduler | |
executeFromActor, tick, onLockup, onLockup, printActorDump |
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 |
protected
val
maxNesting : Int
Method Details |
def
execute(task : java.lang.Runnable) : Unit
Runnable
for execution.task -
the task to be executedfun -
the closure to be executed
def
shutdown : Unit
a -
the actor to be registereda -
the actor to be registereda -
the actorf -
the closure to be registered
def
isActive : Boolean
def
managedBlock(blocker : ManagedBlocker) : Unit
Scala Library
|
|