From 0839a22c20695122eadb1ea6b957343c18348722 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 27 Jan 2019 18:48:31 +0100 Subject: [PATCH] Document a recent example --- examples/s4u/README.rst | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/examples/s4u/README.rst b/examples/s4u/README.rst index ca814d7c5c..a01e332eb4 100644 --- a/examples/s4u/README.rst +++ b/examples/s4u/README.rst @@ -42,7 +42,16 @@ Starting and Stoping Actors - |cpp| `examples/s4u/actor-create/s4u-actor-create.cpp `_ - |py| `examples/python/actor-create/actor-create.py `_ - + + - **React to the end of actors:** + You can attach a callback to the end of actors. There is two ways + of doing so, depending of whether you want your callback to be + executed when a specific actor ends (with ```this_actor::on_exit()```) + or whether it should be executed when any actor ends (with + ```Actor::on_destruction()```) + + - |cpp| `examples/s4u/actor-exiting/s4u-actor-exiting.cpp `_ + - **Kill actors:** Actors can forcefully stop other actors. -- 2.20.1