Skip to content

Commit 0a49fd9

Browse files
committed
Add newsfragment for GC hooks
1 parent b5c50ce commit 0a49fd9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

newsfragments/15.feature.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Add support for PEP 525-style finalization hooks via ``set_asyncgen_hooks()``
2+
and ``get_asyncgen_hooks()`` functions, which mimic the behavior of the ones
3+
in ``sys`` if we're running on a Python version that doesn't have them natively.
4+
``@async_generator`` generators behave the same way as native ones with respect
5+
to these hooks.

0 commit comments

Comments
 (0)