DOC: Correction of stop description

This commit is contained in:
Patrik Nordwall 2011-12-14 20:26:27 +01:00
parent ab1c4c6833
commit 7b2349c0d9
2 changed files with 14 additions and 16 deletions

View file

@ -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

View file

@ -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