Added 'withRouter[TYPE]' to 'Props'.
Added docs (Scala and Java) and (code for the docs) for 'Props'. Renamed UntypedActorTestBase to UntypedActorDocTestBase. Signed-off-by: Jonas Bonér <jonas@jonasboner.com>
This commit is contained in:
parent
66e7155ef1
commit
80600abc33
10 changed files with 178 additions and 83 deletions
|
|
@ -50,7 +50,7 @@ object Pi extends App {
|
|||
var start: Long = _
|
||||
|
||||
//#create-router
|
||||
val router = context.actorOf(Props(new Worker).withRouter(RoundRobinRouter(nrOfInstances = nrOfWorkers)), "pi")
|
||||
val router = context.actorOf(Props[Worker].withRouter(RoundRobinRouter(nrOfInstances = nrOfWorkers)), "pi")
|
||||
//#create-router
|
||||
|
||||
//#master-receive
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue