scala.actors

class SingleThreadedScheduler

[source: scala/actors/SingleThreadedScheduler.scala]

class SingleThreadedScheduler
extends IScheduler
This scheduler executes the tasks of an actor on a single thread (the current thread).
Version
0.9.18
Author
Philipp Haller
Values and Variables inherited from IScheduler
QUIT_TASK
Method Summary
def execute (task : java.lang.Runnable) : Unit
Submits a Runnable for execution.
def execute (fun : => Unit) : Unit
Submits a closure for execution.
def onLockup (millis : Int)(handler : () => Unit) : Unit
def onLockup (handler : () => Unit) : Unit
def printActorDump : Unit
def shutdown : Unit
Shuts down the scheduler.
def tick (a : Actor) : Unit
Notifies the scheduler about activity of the executing actor.
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
def execute(task : java.lang.Runnable) : Unit
Submits a Runnable for execution.
Parameters
task - the task to be executed
Overrides
IScheduler.execute

def execute(fun : => Unit) : Unit
Submits a closure for execution.
Parameters
fun - the closure to be executed
Overrides
IScheduler.execute

def tick(a : Actor) : Unit
Notifies the scheduler about activity of the executing actor.
Parameters
a - the active actor
Overrides
IScheduler.tick

def shutdown : Unit
Shuts down the scheduler.
Overrides
IScheduler.shutdown

def onLockup(handler : () => Unit) : Unit
Overrides
IScheduler.onLockup

def onLockup(millis : Int)(handler : () => Unit) : Unit
Overrides
IScheduler.onLockup

def printActorDump : Unit
Overrides
IScheduler.printActorDump