scala.actors

InputChannel

trait InputChannel[+Msg] extends AnyRef

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

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. InputChannel
  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

Abstract Value Members

  1. abstract def ?: Msg

    Receives the next message from this InputChannel.

  2. abstract def react(f: PartialFunction[Msg, Unit]): Nothing

    Receives a message from this InputChannel.

    Receives a message from this InputChannel.

    This method never returns. Therefore, the rest of the computation has to be contained in the actions of the partial function.

    f

    a partial function with message patterns and actions

  3. abstract def reactWithin(msec: Long)(f: PartialFunction[Any, Unit]): Nothing

    Receives a message from this InputChannel within a certain time span.

    Receives a message from this InputChannel within a certain time span.

    This method never returns. Therefore, the rest of the computation has to be contained in the actions of the partial function.

    msec

    the time span before timeout

    f

    a partial function with message patterns and actions

  4. abstract def receive[R](f: PartialFunction[Msg, R]): R

    Receives a message from this InputChannel.

    Receives a message from this InputChannel.

    f

    a partial function with message patterns and actions

    returns

    result of processing the received value

  5. abstract def receiveWithin[R](msec: Long)(f: PartialFunction[Any, R]): R

    Receives a message from this InputChannel within a certain time span.

    Receives a message from this InputChannel within a certain time span.

    msec

    the time span before timeout

    f

    a partial function with message patterns and actions

    returns

    result of processing the received value