Update actor-lifecycle.md (#29391)
This commit is contained in:
parent
6d290d6699
commit
1290befec8
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ is a tool that mimics the old style of starting up actors.
|
||||||
Child actors are created and started with @apidoc[typed.*.ActorContext]'s `spawn`.
|
Child actors are created and started with @apidoc[typed.*.ActorContext]'s `spawn`.
|
||||||
In the example below, when the root actor
|
In the example below, when the root actor
|
||||||
is started, it spawns a child actor described by the `HelloWorld` behavior. Additionally, when the root actor receives a
|
is started, it spawns a child actor described by the `HelloWorld` behavior. Additionally, when the root actor receives a
|
||||||
`Start` message, it creates a child actor defined by the behavior `HelloWorldBot`:
|
`SayHello` message, it creates a child actor defined by the behavior `HelloWorldBot`:
|
||||||
|
|
||||||
Scala
|
Scala
|
||||||
: @@snip [IntroSpec.scala](/akka-actor-typed-tests/src/test/scala/docs/akka/typed/IntroSpec.scala) { #hello-world-main }
|
: @@snip [IntroSpec.scala](/akka-actor-typed-tests/src/test/scala/docs/akka/typed/IntroSpec.scala) { #hello-world-main }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue