Skip to content

Commit 5006bee

Browse files
committed
merge recent newsfragments
1 parent 520768e commit 5006bee

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

docs/source/history.rst

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,18 @@ Release history
55

66
.. towncrier release notes start
77
8-
trio-asyncio 0.12.0 (2021-01-04)
8+
trio-asyncio 0.12.0 (2021-01-07)
99
--------------------------------
1010

1111
Bugfixes
1212
~~~~~~~~
1313

14+
- trio-asyncio now cancels any Trio tasks that were started inside a trio-asyncio
15+
loop (using e.g. :func:`trio_as_aio`) before it allows the trio-asyncio loop
16+
to close. This should resolve some cases of deadlocks and "RuntimeError: Event loop
17+
is closed" when an ``async with open_loop():`` block is cancelled. (`#89 <https://github.com/python-trio/trio-asyncio/issues/89>`__)
18+
- :func:`asyncio.get_running_loop` will now return the trio-asyncio event loop
19+
(if running), instead of failing with :exc:`RuntimeError`. (`#99 <https://github.com/python-trio/trio-asyncio/issues/99>`__)
1420
- On Python versions with native contextvars support (3.7+), a Trio task
1521
started from asyncio context (using :func:`trio_as_aio`,
1622
:meth:`~BaseTrioEventLoop.trio_as_future`, etc) will now properly

newsfragments/89.bugfix.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

newsfragments/99.bugfix.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)