Skip to content

Commit

Permalink
Add synchronous behaviour to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
asaf-kali authored and Michael Howitz committed Oct 2, 2020
1 parent a40fe19 commit aff62eb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The ``zope.event`` package provides a simple event system, including:
- An event publishing API, intended for use by applications which are
unaware of any subscribers to their events.

- A very simple event-dispatching system on which more sophisticated
- A very simple synchronous event-dispatching system, on which more sophisticated
event dispatching systems can be built. For example, a type-based
event dispatching system that builds on ``zope.event`` can be found in
``zope.component``.
Expand Down
6 changes: 3 additions & 3 deletions docs/hacking.rst
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ you can see how well the tests cover the code:
...
Name Stmts Exec Cover Missing
------------------------------------------
zope.event 5 5 100%
zope.event 5 5 100%
----------------------------------------------------------------------
Ran 3 tests in 0.019s
Expand All @@ -124,7 +124,7 @@ Building the documentation
--------------------------

:mod:`zope.event` uses the nifty :mod:`Sphinx` documentation system
for building its docs. Using the same virtualenv you set up to run the
for building its docs. Using the same virtualenv you set up to run the
tests, you can build the docs:

.. code-block:: sh
Expand Down Expand Up @@ -213,7 +213,7 @@ tool designed to run tests against multiple Python versions. It creates
a ``virtualenv`` for each configured version, installs the current package
and configured dependencies into each ``virtualenv``, and then runs the
configured commands.

:mod:`zope.event` configures the following :mod:`tox` environments via
its ``tox.ini`` file:

Expand Down
4 changes: 4 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,7 @@ To unsubscribe, simply remove a subscriber from the list:
.. testcleanup::

zope.event.subscribers[:] = old_subscribers

.. note:: The :func:`~.zope.event.notify` is synchronous, meaning it calls the
subscribers in sequential order (and not in parallel). This also means that the
process will not continue until all subscribers are done handling the event.

0 comments on commit aff62eb

Please sign in to comment.