Added lookup method in Dispatchers to provide a registry of configured dispatchers to be shared between actors. See #1458
This commit is contained in:
parent
03e731e098
commit
eede488fd3
6 changed files with 57 additions and 20 deletions
|
|
@ -187,7 +187,7 @@ class ActorDocSpec extends AkkaSpec(Map("akka.loglevel" -> "INFO")) {
|
|||
"creating actor with Props" in {
|
||||
//#creating-props
|
||||
import akka.actor.Props
|
||||
val dispatcher = system.dispatcherFactory.newFromConfig("my-dispatcher")
|
||||
val dispatcher = system.dispatcherFactory.lookup("my-dispatcher")
|
||||
val myActor = system.actorOf(Props[MyActor].withDispatcher(dispatcher), name = "myactor")
|
||||
//#creating-props
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue