We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
asyncio.Task.cancel
1 parent f69b344 commit 64b066aCopy full SHA for 64b066a
2 files changed
Doc/library/asyncio-task.rst
@@ -1381,7 +1381,10 @@ Task Object
1381
1382
Request the Task to be cancelled.
1383
1384
- This arranges for a :exc:`CancelledError` exception to be thrown
+ If the Task is already *done* or *cancelled*, return ``False``,
1385
+ otherwise, return ``True``.
1386
+
1387
+ The method arranges for a :exc:`CancelledError` exception to be thrown
1388
into the wrapped coroutine on the next cycle of the event loop.
1389
1390
The coroutine then has a chance to clean up or even deny the
Misc/ACKS
@@ -1663,6 +1663,7 @@ Andreas Schawo
1663
Neil Schemenauer
1664
David Scherer
1665
Wolfgang Scherer
1666
+Felix Scherz
1667
Hynek Schlawack
1668
Bob Schmertz
1669
Gregor Schmid
0 commit comments