diff options
author | Philipp Haller <hallerp@gmail.com> | 2009-10-06 17:43:02 +0000 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2009-10-06 17:43:02 +0000 |
commit | 8befdb8b05b097c7861dc959f4ec29e5b8a758e6 (patch) | |
tree | 35169ba046f196b5af9c960fdf84fed43af0df3b /test/files/jvm/replyablereactor.scala | |
parent | 7c04bac160b4dd6bfb1b8c5a4b5a15396a64350e (diff) | |
download | scala-8befdb8b05b097c7861dc959f4ec29e5b8a758e6.tar.gz scala-8befdb8b05b097c7861dc959f4ec29e5b8a758e6.tar.bz2 scala-8befdb8b05b097c7861dc959f4ec29e5b8a758e6.zip |
Restored type of receiver in OutputChannel and ...
Restored type of receiver in OutputChannel and Channel to Actor.
ReplyReactor inherits from ReplyableReactor. ReplyableReactor is now
private.
Diffstat (limited to 'test/files/jvm/replyablereactor.scala')
-rw-r--r-- | test/files/jvm/replyablereactor.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/files/jvm/replyablereactor.scala b/test/files/jvm/replyablereactor.scala index 5c45c7fc54..368d172e3f 100644 --- a/test/files/jvm/replyablereactor.scala +++ b/test/files/jvm/replyablereactor.scala @@ -1,7 +1,7 @@ import scala.actors._ import scala.actors.Actor._ -class MyActor extends ReplyReactor with ReplyableReactor { +class MyActor extends ReplyReactor { def act() { loop { react { @@ -27,8 +27,8 @@ object Test { loop { i += 1 val ft = r !! 'hello - react { - case ft.inputChannel ! msg => + ft.inputChannel.react { + case msg => if (i % 10000 == 0) println(msg) if (i >= 50000) { |