summaryrefslogtreecommitdiff
path: root/test/files/jvm/actmig-react-within.scala
diff options
context:
space:
mode:
authorphaller <hallerp@gmail.com>2012-09-29 18:15:37 +0200
committerphaller <hallerp@gmail.com>2012-09-29 18:19:52 +0200
commitb2211a76a6e537cf2e404d424cb643f171818e92 (patch)
tree0fde859c45025594b7205cffe1c29fc37bf9b483 /test/files/jvm/actmig-react-within.scala
parentbe49f36154efa78c3dcbeba394aa6ec2b5e764ec (diff)
downloadscala-b2211a76a6e537cf2e404d424cb643f171818e92.tar.gz
scala-b2211a76a6e537cf2e404d424cb643f171818e92.tar.bz2
scala-b2211a76a6e537cf2e404d424cb643f171818e92.zip
SI-6442 - Add ActorDSL object for actor migration kit
Removes MigrationSystem, since ActorDSL replaces it.
Diffstat (limited to 'test/files/jvm/actmig-react-within.scala')
-rw-r--r--test/files/jvm/actmig-react-within.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/files/jvm/actmig-react-within.scala b/test/files/jvm/actmig-react-within.scala
index 43350ef120..3057398cb5 100644
--- a/test/files/jvm/actmig-react-within.scala
+++ b/test/files/jvm/actmig-react-within.scala
@@ -2,7 +2,6 @@
* NOTE: Code snippets from this test are included in the Actor Migration Guide. In case you change
* code in these tests prior to the 2.10.0 release please send the notification to @vjovanov.
*/
-import scala.actors.migration.MigrationSystem._
import scala.actors.Actor._
import scala.actors._
import scala.actors.migration._
@@ -27,7 +26,7 @@ object Test {
}
}
- val myActor = MigrationSystem.actorOf(Props(() => new StashingActor {
+ val myActor = ActorDSL.actor(new StashingActor {
context.setReceiveTimeout(1 millisecond)
def receive = {
case ReceiveTimeout =>
@@ -37,7 +36,7 @@ object Test {
case _ =>
println("Should not occur.")
}
- }, "default-stashing-dispatcher"))
+ })
}
def main(args: Array[String]) = {