Skip to content

Commit

Permalink
Run towncrier and bump version to 0.14.1 for release
Browse files Browse the repository at this point in the history
  • Loading branch information
oremanj committed Apr 19, 2024
1 parent dde84b3 commit 8e6f8ea
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
27 changes: 27 additions & 0 deletions docs/source/history.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,33 @@ Release history

.. towncrier release notes start
trio-asyncio 0.14.1 (2024-04-18)
--------------------------------

Bugfixes
~~~~~~~~

- ``TrioExecutor.submit()``, which implements calls to
:meth:`asyncio.loop.run_in_executor` in a trio-asyncio program,
no longer acquires a token from its `~trio.CapacityLimiter` before
calling :func:`trio.to_thread.run_sync`.
The previous behaviour caused each worker thread to consume two tokens
rather than one, since :func:`trio.to_thread.run_sync` also acquires a token.
When many tasks called :meth:`~asyncio.loop.run_in_executor` in parallel,
this could cause a deadlock: because everyone is holding a first token, no one
can make progress by getting a second one.
(`#143 <https://github.com/python-trio/trio-asyncio/issues/143>`__)


Miscellaneous
~~~~~~~~~~~~~

- Updated test suite to cope with Trio 0.25.0 and later defaulting
``strict_exception_groups`` to ``True``. Trio 0.25.0 is now required
to run the tests, although trio-asyncio itself still supports older
versions. (`#146 <https://github.com/python-trio/trio-asyncio/issues/146>`__)


trio-asyncio 0.14.0 (2024-02-07)
--------------------------------

Expand Down
3 changes: 0 additions & 3 deletions newsfragments/143.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion newsfragments/146.misc.rst

This file was deleted.

2 changes: 1 addition & 1 deletion trio_asyncio/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# This file is imported from __init__.py and exec'd from setup.py

__version__ = "0.14.0+dev"
__version__ = "0.14.1"

0 comments on commit 8e6f8ea

Please sign in to comment.