Skip to content

Commit 050fb3d

Browse files
committed
0.12.0 history
1 parent ba572d6 commit 050fb3d

File tree

4 files changed

+44
-13
lines changed

4 files changed

+44
-13
lines changed

docs/source/history.rst

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,50 @@ Release history
55

66
.. towncrier release notes start
77
8+
Trio_Asyncio 0.12.0 (2021-01-01)
9+
--------------------------------
10+
11+
Bugfixes
12+
~~~~~~~~
13+
14+
- On Python versions with native contextvars support (3.7+), a Trio task
15+
started from asyncio context (using :func:`trio_as_aio`,
16+
:meth:`~BaseTrioEventLoop.trio_as_future`, etc) will now properly
17+
inherit the contextvars of its caller. Also, if the entire
18+
trio-asyncio loop is cancelled, such tasks will no longer let
19+
`trio.Cancelled` exceptions leak into their asyncio caller. (`#76 <https://github.com/python-trio/trio-asyncio/issues/76>`__)
20+
- Previously, cancelling the context surrounding an :func:`open_loop`
21+
block might cause a deadlock in some cases. The ordering of operations
22+
during loop teardown has been improved, so this shouldn't happen
23+
anymore. (`#80 <https://github.com/python-trio/trio-asyncio/issues/80>`__)
24+
25+
Deprecations and Removals
26+
~~~~~~~~~~~~~~~~~~~~~~~~~
27+
28+
A number of functions deprecated since 0.10.0 are now removed:
29+
30+
================================================= =============================================
31+
Removed Replacement
32+
================================================= =============================================
33+
``wrap_generator`` :func:`aio_as_trio(proc(*args))<aio_as_trio>`
34+
``run_iterator`` :func:`aio_as_trio(aiter)<aio_as_trio>`
35+
``trio2aio`` :func:`~aio_as_trio`
36+
``aio2trio`` :func:`~trio_as_aio`
37+
``run_future`` ``TrioEventLoop.run_future`` :func:`~run_aio_future`
38+
``run_coroutine`` ``TrioEventLoop.run_coroutine`` :func:`~run_aio_coroutine`
39+
``wrap_trio_context`` :func:`trio_as_aio(ctx)<trio_as_aio>`
40+
``TrioEventLoop.run_trio`` :func:`trio_as_aio(proc)(*args)<trio_as_aio>`
41+
``run_asyncio`` :func:`aio_as_trio(proc)(*args)<aio_as_trio>`
42+
================================================= =============================================
43+
44+
Miscellaneous
45+
~~~~~~~~~~~~~
46+
47+
- ``trio-asyncio`` now requires Trio 0.15. Support for Python < 3.6 has been removed. (`#82 <https://github.com/python-trio/trio-asyncio/issues/82>`__)
48+
49+
- No more ``TrioDeprecationWarning`` about ``trio.hazmat``. (`#82 <https://github.com/python-trio/trio-asyncio/issues/82>`__)
50+
51+
852
trio-asyncio 0.11.0 (2020-03-09)
953
--------------------------------
1054

newsfragments/76.bugfix.rst

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

newsfragments/80.bugfix.rst

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

newsfragments/82.misc.rst

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

0 commit comments

Comments
 (0)