in scala.actors
class Reactions

mixin abstract `class` Reactions [ m ]
  `extends` java.lang.Object
  `with` scala.ScalaObject

  An enclosing trait for reactions. Examples of reactions are: actor.receive's, event.handle's, etc

author:
  Martin Odersky
version:
  1.0
param:
  m The input type of a Reaction; typically the type of messages or events.

Type Summary
| `type` Re [ r ] The partial function underlying a reaction. Note that this is formulated in CPS style.

Class Summary
| `class` Reaction [ r ] The class of reactions

Def Summary
| `def` activate [ r ] ( f : scala.PartialFunction[m,((r) => scala.Unit) => scala.Unit] ) : ((r) => scala.Unit) => scala.Unit Activate the given partial function `f', for instance by reading a message or waiting for an event, and applying `f' to the result.

Type Detail

`type` Re [ r ]

  The partial function underlying a reaction. Note that this is formulated in CPS style.

Def Detail

`def` activate [ r ]( f : scala.PartialFunction[m,((r) => scala.Unit) => scala.Unit] ) : ((r) => scala.Unit) => scala.Unit

  Activate the given partial function `f', for instance by reading a message or waiting for an event, and applying `f' to the result.