-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR #8583/f185dd19 backport][3.10] Add additional clarification for c…
…reating objects that require a running event loop (#8585) Co-authored-by: J. Nick Koston <nick@koston.org>
- Loading branch information
1 parent
9ed3841
commit f287ccc
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
8555.breaking.rst |