DOC: Updated stop description

This commit is contained in:
Patrik Nordwall 2011-12-14 19:39:51 +01:00
parent 6bbbceaf6c
commit ab1c4c6833
2 changed files with 8 additions and 6 deletions

View file

@ -340,13 +340,14 @@ message.
Stopping actors
===============
Actors are stopped by invoking the ``stop`` method of the ``ActorRef``.
The actual termination of the actor is performed asynchronously, i.e.
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
actor.stop();
getContext().stop(childActorRef);
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