scala.actors

CanReply

trait CanReply[-T, +R] extends AnyRef

Defines result-bearing message send operations.

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.

Linear Supertypes
AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CanReply
  2. AnyRef
  3. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract type Future[+P] <: () ⇒ P

Abstract Value Members

  1. abstract def !![P](msg: T, handler: PartialFunction[R, P]): Future[P]

    Sends msg to this CanReply and immediately returns a future representing the reply value.

    Sends msg to this CanReply and immediately returns a future representing the reply value. The reply is post-processed using the partial function handler. This also allows to recover a more precise type for the reply value.

    msg

    the message to be sent

    handler

    the function to be applied to the response

    returns

    the future

  2. abstract def !!(msg: T): Future[R]

    Sends msg to this CanReply and immediately returns a future representing the reply value.

    Sends msg to this CanReply and immediately returns a future representing the reply value.

    msg

    the message to be sent

    returns

    the future

  3. abstract def !?(msec: Long, msg: T): Option[R]

    Sends msg to this CanReply and awaits reply (synchronous) within msec milliseconds.

    Sends msg to this CanReply and awaits reply (synchronous) within msec milliseconds.

    msec

    the time span before timeout

    msg

    the message to be sent

    returns

    None in case of timeout, otherwise Some(x) where x is the reply

  4. abstract def !?(msg: T): R

    Sends msg to this CanReply and awaits reply (synchronous).

    Sends msg to this CanReply and awaits reply (synchronous).

    msg

    the message to be sent

    returns

    the reply