diff --git a/akka-docs/java/untyped-actors.rst b/akka-docs/java/untyped-actors.rst index 1b32481901..ca1005defb 100644 --- a/akka-docs/java/untyped-actors.rst +++ b/akka-docs/java/untyped-actors.rst @@ -340,14 +340,13 @@ message. Stopping actors =============== -Actors are stopped by invoking the ``stop`` method of the ``ActorContext`` -for child actors or ``stop`` method of the ``ActorSystem`` for top level -actors. The actual termination of the actor is performed asynchronously, i.e. -``stop`` may return before the actor is stopped. - -.. code-block:: java - - getContext().stop(childActorRef); +Actors are stopped by invoking the :meth:`stop` method of a ``ActorRefFactory``, +i.e. ``ActorContext`` or ``ActorSystem``. Typically the context is used for stopping +child actors and the system for stopping top level actors. When using the context +to stop an actor the actual termination of the actor is performed asynchronously, +i.e. :meth:`stop` may return before the actor is stopped. When using the system to +stop an actor the :meth:`stop` method will block until the actor is stopped, or +timeout occurs (``akka.actor.creation-timeout`` :ref:`configuration` property). Processing of the current message, if any, will continue before the actor is stopped, but additional messages in the mailbox will not be processed. By default these diff --git a/akka-docs/scala/actors.rst b/akka-docs/scala/actors.rst index 663c07c70a..526eed201a 100644 --- a/akka-docs/scala/actors.rst +++ b/akka-docs/scala/actors.rst @@ -407,14 +407,13 @@ object. Stopping actors =============== -Actors are stopped by invoking the ``stop`` method of the ``ActorContext`` -for child actors or ``stop`` method of the ``ActorSystem`` for top level -actors. The actual termination of the actor is performed asynchronously, i.e. -``stop`` may return before the actor is stopped. - -.. code-block:: scala - - context.stop(childActorRef) +Actors are stopped by invoking the :meth:`stop` method of a ``ActorRefFactory``, +i.e. ``ActorContext`` or ``ActorSystem``. Typically the context is used for stopping +child actors and the system for stopping top level actors. When using the context +to stop an actor the actual termination of the actor is performed asynchronously, +i.e. :meth:`stop` may return before the actor is stopped. When using the system to +stop an actor the :meth:`stop` method will block until the actor is stopped, or +timeout occurs (``akka.actor.creation-timeout`` :ref:`configuration` property). Processing of the current message, if any, will continue before the actor is stopped, but additional messages in the mailbox will not be processed. By default these