From 732a610246fdbac0cb5efc0b27a7834907e9f082 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Fri, 23 Mar 2018 09:31:29 +0545 Subject: [PATCH] docs: add beginnings of section on func decorators --- docs/getting_started.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/getting_started.rst b/docs/getting_started.rst index 234b556f..846fa88c 100644 --- a/docs/getting_started.rst +++ b/docs/getting_started.rst @@ -248,6 +248,19 @@ without the need for writing asynchronous code:: +Recovering Mitogen Object References In Children +------------------------------------------------ + +:: + + @mitogen.core.takes_econtext + def func1(a, b, econtext): + ... + + @mitogen.core.takes_router + def func2(a, b, router): + ... + Recursion