Fixed review comments
This commit is contained in:
parent
5cee76820e
commit
c8472826fe
3 changed files with 45 additions and 20 deletions
|
|
@ -168,7 +168,7 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
|
|||
//#creating-props
|
||||
import akka.actor.Props
|
||||
val dispatcher = system.dispatcherFactory.fromConfig("my-dispatcher")
|
||||
val myActor = system.actorOf(Props().withDispatcher(dispatcher), name = "myactor")
|
||||
val myActor = system.actorOf(Props[MyActor].withDispatcher(dispatcher), name = "myactor")
|
||||
//#creating-props
|
||||
|
||||
myActor.stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue