package actors

A library that provides both asynchronous and synchronous messaging to allow for concurrent programming without explicit synchronization.


A detailed guide for the actors library is available

Getting Started

A starting point for using the actors library would be scala.actors.Reactor, scala.actors.ReplyReactor, or scala.actors.Actor or their companion objects.


As of release 2.10.1, replaced by package. For migration of existing actors refer to the Actors Migration Guide.

Linear Supertypes
AnyRef, Any
Content Hierarchy Learn more about scaladoc diagrams
  1. Alphabetic
  2. By inheritance
  1. actors
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
  1. Public
  2. All

Type Members

  1. case class ![a](ch: Channel[a], msg: a) extends Product with Serializable

    Used to pattern match on values that were sent to some channel Chann by the current actor self.

  2. trait AbstractActor extends OutputChannel[Any] with CanReply[Any, Any]

  3. trait Actor extends InternalActor with ReplyReactor

    Provides lightweight, concurrent actors.

  4. trait ActorRef extends AnyRef

    Trait used for migration of Scala actors to Akka.

  5. class AskTimeoutException extends TimeoutException

    This is what is used to complete a Future that is returned from an ask/? call, when it times out.

  6. trait CanReply[-T, +R] extends AnyRef

    Defines result-bearing message send operations.

  7. class Channel[Msg] extends InputChannel[Msg] with OutputChannel[Msg] with CanReply[Msg, Any]

    Provides a means for typed communication among actors.

  8. trait DaemonActor extends Actor

    Base trait for actors with daemon semantics.

  9. case class Exit(from: AbstractActor, reason: AnyRef) extends Product with Serializable

    Sent to an actor with trapExit set to true whenever one of its linked actors terminates.

  10. abstract class Future[+T] extends Responder[T] with () ⇒ T

    A function of arity 0, returing a value of type T that, when applied, blocks the current actor (Actor.self) until the future's value is available.

  11. trait IScheduler extends AnyRef

    A common interface for all schedulers used to execute actor tasks.

  12. trait InputChannel[+Msg] extends AnyRef

    A common interface for all channels from which values can be received.

  13. trait InternalReplyReactor extends Reactor[Any] with ReactorCanReply

    Extends the scala.actors.Reactor trait with methods to reply to the sender of a message.

  14. trait OutputChannel[-Msg] extends AnyRef

    A common interface for all channels to which values can be sent.

  15. trait Reactor[Msg >: Null] extends OutputChannel[Msg] with Combinators

    Super trait of all actor traits.

  16. trait ReplyReactor extends InternalReplyReactor


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

  17. trait SchedulerAdapter extends IScheduler

    Adapts the behavior of the standard scala.actors.Scheduler object.

  18. case class UncaughtException(actor: InternalActor, message: Option[Any], sender: Option[OutputChannel[Any]], thread: Thread, cause: Throwable) extends Exception with Product with Serializable

    The exit reason when an actor fails to catch an exception.

Value Members

  1. package remote

  2. package scheduler

Deprecated Value Members

  1. object Actor extends Combinators with Serializable

    Provides functions for the definition of actors, as well as actor operations, such as receive, react, reply, etc.

  2. object Debug extends Logger

    Provides methods for generating debugging output.

  3. object Futures

    Methods that operate on futures.

  4. object PoisonPill


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

  5. object Scheduler extends DelegatingScheduler

    Used by scala.actors.Actor instances to execute tasks of an actor execution.

  6. object TIMEOUT extends Product with Serializable

    Used as the timeout pattern in receiveWithin and reactWithin.

Inherited from AnyRef

Inherited from Any