Thanks to visit codestin.com Credit goes to github.com
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.
1 parent d11e9ff commit 2acb8d9Copy full SHA for 2acb8d9
1 file changed
Doc/library/asyncio-future.rst
@@ -196,6 +196,10 @@ Future Object
196
Otherwise, change the Future's state to *cancelled*,
197
schedule the callbacks, and return ``True``.
198
199
+ The optional string argument *msg* is passed as the argument to the
200
+ :exc:`CancelledError` exception raised when a cancelled Future
201
+ is awaited.
202
+
203
.. versionchanged:: 3.9
204
Added the *msg* parameter.
205
0 commit comments