Add Intro section to actor-lifecycle.md
This commit is contained in:
parent
11a658deb1
commit
a98d5807da
1 changed files with 12 additions and 1 deletions
|
|
@ -19,7 +19,18 @@ To use Akka Actor Typed, you must add the following dependency in your project:
|
||||||
|
|
||||||
## Introduction
|
## 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
|
## Creating Actors
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue