DOC: Props.empty.withRouter, see #3464

This commit is contained in:
Patrik Nordwall 2013-07-01 12:51:35 +02:00
parent 1cca2b85e3
commit 7c3f6c21d8
5 changed files with 13 additions and 7 deletions

View file

@ -29,7 +29,7 @@ object RoutingProgrammaticallyExample extends App {
val actor2 = system.actorOf(Props[ExampleActor1])
val actor3 = system.actorOf(Props[ExampleActor1])
val routees = Vector[ActorRef](actor1, actor2, actor3)
val router2 = system.actorOf(Props().withRouter(
val router2 = system.actorOf(Props.empty.withRouter(
RoundRobinRouter(routees = routees)))
//#programmaticRoutingRoutees
1 to 6 foreach { i router2 ! Message1(i) }