summaryrefslogblamecommitdiff
path: root/src/actors/scala/actors/InputChannel.scala
blob: ba97703b1a0fa1b25f1189e1a91c7c0ed27fe60a (plain) (tree)
1
2
3
4
5
6
7
8







                                                                     
package scala.actors

trait InputChannel[Msg] {
  def receive[R](f: PartialFunction[Msg, R]): R
  def receiveWithin[R](msec: long)(f: PartialFunction[Any, R]): R
  def react(f: PartialFunction[Any, Unit]): Nothing
  def reactWithin(msec: long)(f: PartialFunction[Any, Unit]): Nothing
}