|
|
@ -26,29 +26,10 @@ mitogen.core
|
|
|
|
.. automodule:: mitogen.core
|
|
|
|
.. automodule:: mitogen.core
|
|
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. decorator:: takes_econtext
|
|
|
|
.. autodecorator:: takes_econtext
|
|
|
|
|
|
|
|
|
|
|
|
Decorator that marks a function or class method to automatically receive a
|
|
|
|
|
|
|
|
kwarg named `econtext`, referencing the
|
|
|
|
|
|
|
|
:class:`mitogen.core.ExternalContext` active in the context in which the
|
|
|
|
|
|
|
|
function is being invoked in. The decorator is only meaningful when the
|
|
|
|
|
|
|
|
function is invoked via :data:`CALL_FUNCTION
|
|
|
|
|
|
|
|
<mitogen.core.CALL_FUNCTION>`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When the function is invoked directly, `econtext` must still be passed to
|
|
|
|
|
|
|
|
it explicitly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. currentmodule:: mitogen.core
|
|
|
|
.. decorator:: takes_router
|
|
|
|
.. autodecorator:: takes_router
|
|
|
|
|
|
|
|
|
|
|
|
Decorator that marks a function or class method to automatically receive a
|
|
|
|
|
|
|
|
kwarg named `router`, referencing the :class:`mitogen.core.Router`
|
|
|
|
|
|
|
|
active in the context in which the function is being invoked in. The
|
|
|
|
|
|
|
|
decorator is only meaningful when the function is invoked via
|
|
|
|
|
|
|
|
:data:`CALL_FUNCTION <mitogen.core.CALL_FUNCTION>`.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
When the function is invoked directly, `router` must still be passed to it
|
|
|
|
|
|
|
|
explicitly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mitogen.master
|
|
|
|
mitogen.master
|
|
|
|