Renaming createActor to actorOf
This commit is contained in:
parent
3f258f8b63
commit
474787a81d
68 changed files with 343 additions and 343 deletions
|
|
@ -22,9 +22,9 @@ class MyActor extends Actor {
|
|||
|
||||
class ActorDocSpec extends AkkaSpec {
|
||||
|
||||
"creating actor with AkkaSpec.createActor" in {
|
||||
"creating actor with AkkaSpec.actorOf" in {
|
||||
//#creating-actorOf
|
||||
val myActor = createActor[MyActor]
|
||||
val myActor = actorOf[MyActor]
|
||||
//#creating-actorOf
|
||||
|
||||
// testing the actor
|
||||
|
|
@ -58,7 +58,7 @@ class ActorDocSpec extends AkkaSpec {
|
|||
|
||||
//#creating-constructor
|
||||
// allows passing in arguments to the MyActor constructor
|
||||
val myActor = createActor(new MyActor("..."))
|
||||
val myActor = actorOf(new MyActor("..."))
|
||||
//#creating-constructor
|
||||
|
||||
myActor.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue