docs: more tweaks

pull/372/head
David Wilson 7 years ago
parent c8081e7ca1
commit 2c0244eea7

@ -1094,11 +1094,11 @@ Select Class
.. code-block:: python .. code-block:: python
sum(context.call_async(get_disk_usage).get().unpickle() recvs = [c.call_async(get_disk_usage) for c in contexts]
for context in contexts) sum(recv.get().unpickle() for recv in recvs)
Result processing happens concurrently to new results arriving, so Result processing happens in the order results arrive, rather than the
:meth:`all` should always be faster. order requests were issued, so :meth:`all` should always be faster.
.. py:method:: get (timeout=None, block=True) .. py:method:: get (timeout=None, block=True)

@ -61,9 +61,9 @@ Enhancements
* `5189408e <https://github.com/dw/mitogen/commit/5189408e>`_: threads are * `5189408e <https://github.com/dw/mitogen/commit/5189408e>`_: threads are
cooperatively scheduled, minimizing `GIL cooperatively scheduled, minimizing `GIL
<https://en.wikipedia.org/wiki/Global_interpreter_lock>`_ contention, and <https://en.wikipedia.org/wiki/Global_interpreter_lock>`_ contention, and
reducing context switching by an order of magnitude. This manifests as an reducing context switching by around 90%. This manifests as an overall
overall improvement, but is easily noticeable on short many-target improvement, but is easily noticeable on short many-target runs, where
runs, where startup overhead dominates runtime. startup overhead dominates runtime.
Fixes Fixes
@ -109,9 +109,9 @@ Fixes
Ansible's behaviour. Ansible's behaviour.
* `#355 <https://github.com/dw/mitogen/issues/355>`_: tasks configured to run * `#355 <https://github.com/dw/mitogen/issues/355>`_: tasks configured to run
in an isolated forked subprocess were being forked from the wrong parent in an isolated forked subprocess were forked from the wrong parent context.
context. This meant built-in modules overridden via a custom ``module_utils`` This meant built-in modules overridden via a custom ``module_utils`` search
search path may not have had any effect. path may not have had any effect.
* A missing check caused an exception traceback to appear when using the * A missing check caused an exception traceback to appear when using the
``ansible`` command-line tool with a missing or misspelled module name. ``ansible`` command-line tool with a missing or misspelled module name.
@ -126,15 +126,19 @@ Fixes
Core Library Core Library
~~~~~~~~~~~~ ~~~~~~~~~~~~
* A new :class:`mitogen.parent.CallChain` class abstracts safe pipelining of
related function calls to a target context, cancelling the chain if an
exception occurs.
* `#305 <https://github.com/dw/mitogen/issues/305>`_: fix a long-standing minor * `#305 <https://github.com/dw/mitogen/issues/305>`_: fix a long-standing minor
race relating to the logging framework, where *no route for Message(...)(* race relating to the logging framework, where *no route for Message..*
would appear fruequently during startup. would frequently appear during startup.
* `#313 <https://github.com/dw/mitogen/issues/313>`_: * `#313 <https://github.com/dw/mitogen/issues/313>`_:
:meth:`mitogen.parent.Context.call` was accidentally documented as capable of :meth:`mitogen.parent.Context.call` was documented as capable of accepting
accepting static methods. While possible on Python 2.x the result is ugly, static methods. While possible on Python 2.x the result is ugly, and in every
and in every case it should be trivial to replace with a classmethod. The case it should be trivial to replace with a classmethod. The documentation
documentation was fixed. was fixed.
* `#337 <https://github.com/dw/mitogen/issues/337>`_: to avoid a scaling * `#337 <https://github.com/dw/mitogen/issues/337>`_: to avoid a scaling
limitation, SSH no longer allocates a PTY for every OpenSSH client. PTYs are limitation, SSH no longer allocates a PTY for every OpenSSH client. PTYs are
@ -161,10 +165,6 @@ Core Library
listener no longer crashes if the peer process disappears in the middle of listener no longer crashes if the peer process disappears in the middle of
connection setup. connection setup.
* A new :class:`mitogen.parent.CallChain` class abstracts safe pipelining of
overlapping chains of related function calls to a target context,
cancelling the chain if an exception occurs.
Thanks! Thanks!
~~~~~~~ ~~~~~~~

Loading…
Cancel
Save