diff options
author | Shane Harvey <shnhrv@gmail.com> | 2020-11-26 13:24:48 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-26 13:24:48 (GMT) |
commit | a1652da2c89bb21f3fdc71780b63b1de2dff11f0 (patch) | |
tree | d05650dd5c1d2ed777bfd5c8e5fff83b837809c4 | |
parent | e3ef4d7f653976ac0ccacc4e3fde06bf0e0f139b (diff) | |
download | cpython-a1652da2c89bb21f3fdc71780b63b1de2dff11f0.zip cpython-a1652da2c89bb21f3fdc71780b63b1de2dff11f0.tar.gz cpython-a1652da2c89bb21f3fdc71780b63b1de2dff11f0.tar.bz2 |
Document optional 'task'/'asyncgen' fields in call_exception_handler (#21735)
-rw-r--r-- | Doc/library/asyncio-eventloop.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/asyncio-eventloop.rst b/Doc/library/asyncio-eventloop.rst index b1e7318..15b5b3f 100644 --- a/Doc/library/asyncio-eventloop.rst +++ b/Doc/library/asyncio-eventloop.rst @@ -1184,10 +1184,13 @@ Allows customizing how exceptions are handled in the event loop. * 'message': Error message; * 'exception' (optional): Exception object; * 'future' (optional): :class:`asyncio.Future` instance; + * 'task' (optional): :class:`asyncio.Task` instance; * 'handle' (optional): :class:`asyncio.Handle` instance; * 'protocol' (optional): :ref:`Protocol <asyncio-protocol>` instance; * 'transport' (optional): :ref:`Transport <asyncio-transport>` instance; - * 'socket' (optional): :class:`socket.socket` instance. + * 'socket' (optional): :class:`socket.socket` instance; + * 'asyncgen' (optional): Asynchronous generator that caused + the exception. .. note:: |