Skip to content

Commit 8b1d2b2

Browse files
committed
gh-150058: add news entry and whatsnew reference for Task.cancel() msg fix
1 parent 435cf31 commit 8b1d2b2

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

Doc/whatsnew/3.16.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ asyncio
126126
* :meth:`asyncio.Task.cancel` now preserves its *msg* argument when a task is
127127
cancelled while waiting on another future, so the message is retained when
128128
the task later raises :exc:`asyncio.CancelledError`.
129-
(Contributed by Prince Kumar in :gh:`NNNNN`.)
129+
(Contributed by Prince Kumar in :gh:`150058`.)
130130

131131
functools
132132
---------
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix :class:`asyncio.Task` dropping the cancellation message passed to
2+
:meth:`~asyncio.Task.cancel` when a waiter future is present.

0 commit comments

Comments
 (0)