Skip to content

Commit 83cca73

Browse files
miss-islingtonManoj K M
andauthored
[3.13] gh-148091: clarify asyncio.Future.cancel(msg) behaviour (GH-148248) (#148300)
gh-148091: clarify asyncio.Future.cancel(msg) behaviour (GH-148248) (cherry picked from commit 2acb8d9) Co-authored-by: Manoj K M <136242596+manoj-k-m@users.noreply.github.com>
1 parent 88b4c23 commit 83cca73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Doc/library/asyncio-future.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ Future Object
195195
Otherwise, change the Future's state to *cancelled*,
196196
schedule the callbacks, and return ``True``.
197197

198+
The optional string argument *msg* is passed as the argument to the
199+
:exc:`CancelledError` exception raised when a cancelled Future
200+
is awaited.
201+
198202
.. versionchanged:: 3.9
199203
Added the *msg* parameter.
200204

0 commit comments

Comments
 (0)