8000 Merge pull request #135 from vjovanov/am-fixes · scala/docs.scala-lang@104a940 · GitHub
[go: up one dir, main page]

Skip to content

Commit 104a940

Browse files
committed
Merge pull request #135 from vjovanov/am-fixes
Minor fixes to the Actor migration kit.
2 parents fa6f0aa + 788bf9b commit 104a940

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

overviews/core/_posts/2010-11-30-actors.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ overview: actors
1010

1111
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.
1212

13+
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).
14+
1315
## The actor traits Reactor, ReplyReactor, and Actor
1416

1517
### The Reactor trait

overviews/core/_posts/2012-11-08-actors-migration-guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ reshape their system so it starts all the actors right after their instantiation
6565
## Migration Overview
6666

6767
### Migration Kit
68-
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
69-
the their interface is deprecated. The distribution also includes Akka actors in the *akka-actor.jar*.
68+
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
69+
the their interface is deprecated. The distribution also includes Akka actors in the *akka-actor.jar*.
7070
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.
7171

7272
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.
306306
should be moved to the `preStart` method.
307307

308308
def act() {
309-
// some code
309+
// initialization code here
310310
loop {
311311
react { ... }
312312
}
@@ -315,7 +315,7 @@ should be moved to the `preStart` method.
315315
should be replaced with
316316

317317
override def preStart() {
318-
// some code
318+
// initialization code here
319319
}
320320

321321
def act() {

0 commit comments

Comments
 (0)
0