PyDocs

Nav

Networking and Interprocess Communication

Task.uncancel

asyncio

method of Task · Added in 3.11not WASI
  • Task.uncancel()
Decrement the task's count of cancellation requests.

This should be used by tasks that catch CancelledError
and wish to continue indefinitely until they are cancelled again.

Returns the remaining number of cancellation requests.
0 Examples
No examples for asyncio/Task.uncancel.
See Also
No see-alsos for asyncio/Task.uncancel
0 Notes
No notes for Task.uncancel