Use apidoc directive in general/actor-systems.md (#22904) (#30767)

This commit is contained in:
Andrei Arlou 2021-10-20 11:58:45 +03:00 committed by GitHub
parent 96264446cd
commit 2c5a14bab8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -107,8 +107,8 @@ while Akka does the heavy lifting under the hood.
## Terminating ActorSystem
When you know everything is done for your application, you can have the user guardian
actor stop, or call the `terminate` method of `ActorSystem`. That will run @ref:[`CoordinatedShutdown`](../coordinated-shutdown.md)
actor stop, or call the @scala[@scaladoc[terminate](akka.actor.typed.ActorSystem#terminate():Unit)]@java[@javadoc[terminate()](akka.actor.typed.ActorSystem#terminate())] method of @apidoc[ActorSystem](typed.ActorSystem). That will run @ref:[`CoordinatedShutdown`](../coordinated-shutdown.md)
stopping all running actors.
If you want to execute some operations while terminating `ActorSystem`,
If you want to execute some operations while terminating @apidoc[ActorSystem](typed.ActorSystem),
look at @ref:[`CoordinatedShutdown`](../coordinated-shutdown.md).