Skip to content

Commit

Permalink
[PR #8583/f185dd19 backport][3.10] Add additional clarification for c…
Browse files Browse the repository at this point in the history
…reating objects that require a running event loop (#8585)

Co-authored-by: J. Nick Koston <nick@koston.org>
  • Loading branch information
patchback[bot] and bdraco authored Aug 2, 2024
1 parent 9ed3841 commit f287ccc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
15 changes: 10 additions & 5 deletions CHANGES/8555.breaking.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
Creating :class:`aiohttp.TCPConnector`, :class:`aiohttp.ClientSession`, or
:class:`aiohttp.CookieJar` instances without a running event loop now
raises a :exc:`RuntimeError`.

-- by :user:`asvetlov`
Creating :py:class:`aiohttp.TCPConnector`,
:py:class:`aiohttp.ClientSession`,
:py:class:`~aiohttp.resolver.ThreadedResolver`
:py:class:`aiohttp.web.Server`,
or :py:class:`aiohttp.CookieJar`
instances without a running event loop now
raises a :exc:`RuntimeError`
-- by :user:`asvetlov`.

Creating these objects without a running event loop was deprecated
in :issue:`3372` which was released in version 3.5.0.

This change first appeared in version 3.10.0 as :issue:`6378`.
1 change: 1 addition & 0 deletions CHANGES/8583.breaking.rst

0 comments on commit f287ccc

Please sign in to comment.