From 456a2637d9d5d793dd79cc13f225b3bad8410293 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Andr=C3=A9n?= Date: Fri, 19 Mar 2021 16:57:31 +0100 Subject: [PATCH] Crosslink and extra sentence about top level spawn in from-classic #30089 --- akka-docs/src/main/paradox/typed/coexisting.md | 2 ++ akka-docs/src/main/paradox/typed/from-classic.md | 3 +++ 2 files changed, 5 insertions(+) diff --git a/akka-docs/src/main/paradox/typed/coexisting.md b/akka-docs/src/main/paradox/typed/coexisting.md index eb4dbf0a40..2e4906f186 100644 --- a/akka-docs/src/main/paradox/typed/coexisting.md +++ b/akka-docs/src/main/paradox/typed/coexisting.md @@ -103,6 +103,8 @@ Scala Java : @@snip [TypedWatchingClassicTest.java](/akka-actor-typed-tests/src/test/java/jdocs/akka/typed/coexistence/TypedWatchingClassicTest.java) { #classic } + + Creating the actor system and the typed actor: Scala diff --git a/akka-docs/src/main/paradox/typed/from-classic.md b/akka-docs/src/main/paradox/typed/from-classic.md index 6d3526e101..af44bb28da 100644 --- a/akka-docs/src/main/paradox/typed/from-classic.md +++ b/akka-docs/src/main/paradox/typed/from-classic.md @@ -117,6 +117,9 @@ for creating top level actors. Instead, there is a single top level actor define when starting the `ActorSystem`. Other actors are started as children of that user guardian actor or children of other actors in the actor hierarchy. This is explained more in @ref:[ActorSystem](#actorsystem). +Note that when mixing classic and typed and have a classic system, spawning top level actors from the side is possible, see +@ref:[Coexistence](coexisting.md#top-level-typed-actor-classic-system). + The `actorOf` method takes an `akka.actor.Props` parameter, which is like a factory for creating the actor instance, and it's also used when creating a new instance when the actor is restarted. The `Props` may also define additional properties such as which dispatcher to use for the actor.