]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46829: Deprecate passing a message into Future.cancel() and Task.cancel() (GH...
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 23 Mar 2022 15:43:05 +0000 (17:43 +0200)
committerGitHub <noreply@github.com>
Wed, 23 Mar 2022 15:43:05 +0000 (08:43 -0700)
commit0360e9f34659e7d7f3dae021b82f78452db8c714
treef88f12dd56fb3f0cca5557447835c94fbea12cb5
parent624e3986fbf8467772e4863b7ec004e65adff619
bpo-46829: Deprecate passing a message into Future.cancel() and Task.cancel() (GH-31840)

After a long deliberation we ended up feeling that the message argument for Future.cancel(), added in 3.9, was a bad idea, so we're deprecating it in 3.11 and plan to remove it in 3.13.
Doc/library/asyncio-future.rst
Doc/library/asyncio-task.rst
Lib/asyncio/futures.py
Lib/asyncio/tasks.py
Lib/test/test_asyncio/test_futures.py
Lib/test/test_asyncio/test_taskgroups.py
Lib/test/test_asyncio/test_tasks.py
Misc/NEWS.d/next/Core and Builtins/2022-03-12-21-07-21.bpo-46829.cpGoPV.rst [new file with mode: 0644]
Modules/_asynciomodule.c