doc: minor clarification of ActorRef.toTyped (#28005)
This commit is contained in:
parent
f40b307785
commit
affb361c52
2 changed files with 4 additions and 2 deletions
|
|
@ -38,6 +38,7 @@ object ClassicWatchingTypedSpec {
|
|||
// self can be used as the `replyTo` parameter here because
|
||||
// there is an implicit conversion from akka.actor.ActorRef to
|
||||
// akka.actor.typed.ActorRef
|
||||
// An equal alternative would be `self.toTyped`
|
||||
second ! Typed.Ping(self)
|
||||
|
||||
override def receive = {
|
||||
|
|
|
|||
|
|
@ -83,8 +83,9 @@ Java
|
|||
: @@snip [ClassicWatchingTypedTest.java](/akka-actor-typed-tests/src/test/java/jdocs/akka/typed/coexistence/ClassicWatchingTypedTest.java) { #adapter-import }
|
||||
|
||||
|
||||
@scala[That adds some implicit extension methods that are added to classic and typed `ActorSystem` and `ActorContext` in both directions.]
|
||||
@java[To convert between typed and classic there are adapter methods in `akka.actor.typed.javadsl.Adapter`.] Note the inline comments in the example above.
|
||||
@scala[That adds some implicit extension methods that are added to classic and typed `ActorSystem`, `ActorContext` and `ActorRef` in both directions.]
|
||||
@java[To convert between typed and classic `ActorSystem`, `ActorContext` and `ActorRef` in both directions there are adapter methods in `akka.actor.typed.javadsl.Adapter`.]
|
||||
Note the inline comments in the example above.
|
||||
|
||||
## Typed to classic
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue