8000 Minor fixes to the Actor migration kit. by vjovanov · Pull Request #135 · scala/docs.scala-lang · GitHub
[go: up one dir, main page]

Skip to content

Minor fixes to the Actor migration kit. #135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions overviews/core/_posts/2010-11-30-actors.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions overviews/core/_posts/2012-11-08-actors-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -306,7 +306,7 @@ examples are shown below.
should be moved to the `preStart` method.

def act() {
// some code
// initialization code here
loop {
react { ... }
}
Expand All @@ -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() {
Expand Down
0