scala.actors

# scheduler

#### package scheduler

Visibility

1. Public
2. All

### Type Members

1. #### trait ActorGC extends TerminationMonitor

   ActorGC keeps track of the number of live actors being managed by a a scheduler so that it can shutdown when all of the actors it manages have either been explicitly terminated or garbage collected.

   ActorGC keeps track of the number of live actors being managed by a a scheduler so that it can shutdown when all of the actors it manages have either been explicitly terminated or garbage collected.

   When an actor is started, it is registered with the ActorGC via the `newActor` method, and when an actor is knowingly terminated (e.g. act method finishes, exit explicitly called, an exception is thrown), the ActorGC is informed via the `terminated` method.

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

2. #### trait ExecutorScheduler extends Thread with IScheduler with TerminationService with ThreadPoolRunner

   The `ExecutorScheduler` class uses an `ExecutorService` to execute `Actor`s.

   The `ExecutorScheduler` class uses an `ExecutorService` to execute `Actor`s.

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

3. #### class ForkJoinScheduler extends Runnable with IScheduler with TerminationMonitor

   The `ForkJoinScheduler` is backed by a lightweight fork-join task execution framework.

   The `ForkJoinScheduler` is backed by a lightweight fork-join task execution framework.

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

4. #### class ResizableThreadPoolScheduler extends Thread with IScheduler with TerminationMonitor

   This scheduler class uses a `ThreadPoolExecutor` to execute `Actor`s.

   This scheduler class uses a `ThreadPoolExecutor` to execute `Actor`s.

   The scheduler attempts to shut down itself and the underlying `ThreadPoolExecutor` only if `terminate` is set to true. Otherwise, the scheduler must be shut down explicitly.

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

5. #### class SingleThreadedScheduler extends IScheduler

   This scheduler executes actor tasks on the current thread.

   This scheduler executes actor tasks on the current thread.

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

### Deprecated Value Members

1. #### object DaemonScheduler extends DelegatingScheduler

   Default scheduler for actors with daemon semantics, such as those backing futures.

   Default scheduler for actors with daemon semantics, such as those backing futures.

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

2. #### object ExecutorScheduler

   The `ExecutorScheduler` object is used to create `ExecutorScheduler` instances.

   The `ExecutorScheduler` object is used to create `ExecutorScheduler` instances.

   Annotations
     @deprecated
   Deprecated

     (Since version 2.11.0) Use the akka.actor package instead. For migration from the scala.actors package refer to the Actors Migration Guide.

### Ungrouped