module documentation

Attribute implementation for _Dispatch classes. The various listener targets for a particular event class are represented as attributes, which refer to collections of listeners to be fired off. These collections can exist at the class level as well as at the instance level. An event is fired off using code like this:: some_object.dispatch.first_connect(arg1, arg2) Above, ``some_object.dispatch`` would be an instance of ``_Dispatch`` and ``first_connect`` is typically an instance of ``_ListenerCollection`` if event listeners are present, or ``_EmptyListener`` if none are present. The attribute mechanics here spend effort trying to ensure listener functions are available with a minimum of function call overhead, that unnecessary objects aren't created (i.e. many empty per-instance listener collections), as well as that everything is garbage collectable when owning references are lost. Other features such as "propagation" of listener functions across many ``_Dispatch`` instances, "joining" of multiple ``_Dispatch`` instances, as well as support for subclass propagation (e.g. events assigned to ``Pool`` vs. ``QueuePool``) are all implemented here.

Class RefCollection Undocumented
Class _ClsLevelDispatch Class-level events on :class:`._Dispatch` classes.
Class _CompoundListener No class docstring; 0/1 instance variable, 0/5 class variable, 4/11 methods documented
Class _empty_collection Undocumented
Class _EmptyListener Serves as a proxy interface to the events served by a _ClsLevelDispatch, when there are no instance-level events present.
Class _InstanceLevelDispatch No class docstring; 0/2 class variable, 1/13 method documented
Class _JoinedListener Undocumented
Class _ListenerCollection Instance-level attributes on instances of :class:`._Dispatch`.
Class _MutexProtocol Undocumented
Type Variable _T Undocumented
Type Alias _ListenerFnSequenceType Undocumented

Undocumented

Value
TypeVar('_T',
        bound=Any)
_ListenerFnSequenceType = (source)

Undocumented

Value
Union[Deque[_T], _empty_collection[_T]]