scala.actors
trait InputChannel

[source: `scala/actors/InputChannel.scala`]

`` `trait` InputChannel[+Msg]
  `extends` AnyRef

  The `InputChannel` trait provides a common interface for all channels from which values can be received.

Version
  0.9.6
Author
  Philipp Haller

Direct Known Subclasses:
  Channel

Method Summary
`abstract def` | react (f : PartialFunction[Msg, Unit]) : Nothing
`abstract def` | reactWithin (msec : Long)(f : PartialFunction[Any, Unit]) : Nothing
`abstract def` | receive [R](f : PartialFunction[Msg, R]) : R
`abstract def` | receiveWithin [R](msec : Long)(f : PartialFunction[Any, R]) : R

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

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

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

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

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