Skip to content

Commit

Permalink
Add additional clarification for creating objects that require a runn…
Browse files Browse the repository at this point in the history
…ing event loop (#8583)

(cherry picked from commit f185dd1)
  • Loading branch information
bdraco authored and patchback[bot] committed Aug 2, 2024
1 parent 01ed189 commit 4c5e0a3
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 4c5e0a3

Please sign in to comment.