ID EN
Sys

get_asyncgen_hooks

Python 3.11

Returns an asyncgen_hooks object, which is similar to a namedtuple of the form (firstiter, finalizer), where firstiter and finalizer are expected to be either None or functions which take an asynchronous generator iterator as an argument, and are used to schedule finalization of an asynchronous generator by an event loop.

Syntax

PYTHON
sys.get_asyncgen_hooks()

See Also

namedtuple asynchronous generator iterator