Document optional 'task'/'asyncgen' fields in call_exception_handler (GH-21735) (GH-30727)

(cherry picked from commit a1652da2c8)

Co-authored-by: Shane Harvey <shnhrv@gmail.com>

Co-authored-by: Shane Harvey <shnhrv@gmail.com>
This commit is contained in:
Miss Islington (bot) 2022-01-22 16:59:23 -08:00 committed by GitHub
parent ba932d9024
commit d807bf2ee9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1193,10 +1193,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::