From 9d0a318df871081c78d8292133aa700d3069d344 Mon Sep 17 00:00:00 2001 From: Vojin Jovanovic Date: Tue, 11 Dec 2012 17:15:10 +0100 Subject: [PATCH 1/2] Minor typo fixes. --- .../core/_posts/2012-11-08-actors-migration-guide.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/overviews/core/_posts/2012-11-08-actors-migration-guide.md b/overviews/core/_posts/2012-11-08-actors-migration-guide.md index 2342b4a479..470272ee7c 100644 --- a/overviews/core/_posts/2012-11-08-actors-migration-guide.md +++ b/overviews/core/_posts/2012-11-08-actors-migration-guide.md @@ -65,8 +65,8 @@ reshape their system so it starts all the actors right after their instantiation ## Migration Overview ### Migration Kit -In Scala 2.10.0 tactors reside inside the [Scala distribution](http://www.scala-lang.org/downloads) as a separate jar ( *scala-actors.jar* ), and -the their interface is deprecated. The distribution also includes Akka actors in the *akka-actor.jar*. +In Scala 2.10.0 actors reside inside the [Scala distribution](http://www.scala-lang.org/downloads) as a separate jar ( *scala-actors.jar* ), and +the their interface is deprecated. The distribution also includes Akka actors in the *akka-actor.jar*. The AMK resides both in the Scala actors and in the *akka-actor.jar*. Future major releases of Scala will not contain Scala actors and the AMK. To start the migration user needs to add the *scala-actors.jar* and the *scala-actors-migration.jar* to the build of their projects. @@ -306,7 +306,7 @@ examples are shown below. should be moved to the `preStart` method. def act() { - // some code + // initialization code here loop { react { ... } } @@ -315,7 +315,7 @@ should be moved to the `preStart` method. should be replaced with override def preStart() { - // some code + // initialization code here } def act() { From 788bf9bc679e0cc581972cfdbec9c53d3b79535a Mon Sep 17 00:00:00 2001 From: Vojin Jovanovic Date: Wed, 12 Dec 2012 16:14:22 +0100 Subject: [PATCH 2/2] Adding deprecation notice to Scala Actors. --- overviews/core/_posts/2010-11-30-actors.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overviews/core/_posts/2010-11-30-actors.md b/overviews/core/_posts/2010-11-30-actors.md index 2af633ab89..dbbdfb4473 100644 --- a/overviews/core/_posts/2010-11-30-actors.md +++ b/overviews/core/_posts/2010-11-30-actors.md @@ -10,6 +10,8 @@ overview: actors This guide describes the API of the `scala.actors` package of Scala 2.8/2.9. The organization follows groups of types that logically belong together. The trait hierarchy is taken into account to structure the individual sections. The focus is on the run-time behavior of the various methods that these traits define, thereby complementing the existing Scaladoc-based API documentation. +NOTE: In Scala 2.10 the Actors library is deprecated and will be removed in future Scala releases. Users should use [Akka](akka.io) actors from the package `akka.actor`. For migration from Scala actors to Akka refer to the [Actors Migration Guide](docs.scala-lang.org/overviews/core/actors-migration-guide.html). + ## The actor traits Reactor, ReplyReactor, and Actor ### The Reactor trait