Merge pull request #27892 from akka/wip-doc-lifecycle-intro-patriknw

Add Intro section to actor-lifecycle.md
This commit is contained in:
Patrik Nordwall 2019-10-07 16:34:43 +02:00 committed by GitHub
commit 40af7903f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,18 @@ To use Akka Actor Typed, you must add the following dependency in your project:
## Introduction
TODO intro
An actor is a stateful resource that has to be explicitly started and stopped.
It is important to note that actors do not stop automatically when no longer
referenced, every Actor that is created must also explicitly be destroyed.
The only simplification is that stopping a parent Actor will also recursively
stop all the child Actors that this parent has created. All actors are also
stopped automatically when the `ActorSystem` is shut down.
@@@ note
An `ActorSystem` is a heavyweight structure that will allocate threads,
so create one per logical application. Typically on `ActorSystem` per JVM process.
@@@
## Creating Actors