Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add additional clarification for creating objects that require a running event loop #8583

Merged
merged 2 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading