blob: a709456f6d432ad2def064965b6fb6e76b7eff58 (
plain) (
tree)
|
|
package examples.actors
import scala.actors.Actor._
object Seq extends Application {
case object A
val a = actor {
{
react {
case A => scala.Console.println("got A")
}
()
} andThen {
react {
case A => scala.Console.println("2nd reactor got A")
}
}
}
a ! A
a ! A
}
|