Adding :ActorRef to signal that actorOf returns an ActorRef for routers as well
This commit is contained in:
parent
2c251ccf1c
commit
4c859420d1
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class RouterDocSpec extends AkkaSpec {
|
|||
import RouterDocSpec._
|
||||
|
||||
//#dispatchers
|
||||
val router = system.actorOf(Props[MyActor]
|
||||
val router: ActorRef = system.actorOf(Props[MyActor]
|
||||
.withRouter(RoundRobinRouter(5, routerDispatcher = "router")) // “head” will run on "router" dispatcher
|
||||
.withDispatcher("workers")) // MyActor workers will run on "workers" dispatcher
|
||||
//#dispatchers
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue