Skip to content

Commit f287ccc

Browse files
[PR #8583/f185dd19 backport][3.10] Add additional clarification for creating objects that require a running event loop (#8585)
Co-authored-by: J. Nick Koston <[email protected]>
1 parent 9ed3841 commit f287ccc

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

CHANGES/8555.breaking.rst

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
Creating :class:`aiohttp.TCPConnector`, :class:`aiohttp.ClientSession`, or
2-
:class:`aiohttp.CookieJar` instances without a running event loop now
3-
raises a :exc:`RuntimeError`.
4-
5-
-- by :user:`asvetlov`
1+
Creating :py:class:`aiohttp.TCPConnector`,
2+
:py:class:`aiohttp.ClientSession`,
3+
:py:class:`~aiohttp.resolver.ThreadedResolver`
4+
:py:class:`aiohttp.web.Server`,
5+
or :py:class:`aiohttp.CookieJar`
6+
instances without a running event loop now
7+
raises a :exc:`RuntimeError`
8+
-- by :user:`asvetlov`.
69

710
Creating these objects without a running event loop was deprecated
811
in :issue:`3372` which was released in version 3.5.0.
12+
13+
This change first appeared in version 3.10.0 as :issue:`6378`.

CHANGES/8583.breaking.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
8555.breaking.rst

0 commit comments

Comments
 (0)