class _CompoundListener(_InstanceLevelDispatch):
Known subclasses: sqlalchemy.event.attr._JoinedListener
, sqlalchemy.event.attr._ListenerCollection
Undocumented
Method | __bool__ |
Undocumented |
Method | __call__ |
Execute this event. |
Method | __iter__ |
Undocumented |
Method | __len__ |
Undocumented |
Method | _exec_once_impl |
Undocumented |
Method | _exec_w_sync_on_first_run |
No summary |
Method | _memoized_attr__exec_once_mutex |
Undocumented |
Method | _set_asyncio |
Undocumented |
Method | exec_once |
Execute this event, but only if it has not been executed already for this collection. |
Method | exec_once_unless_exception |
No summary |
Class Variable | __slots__ |
Undocumented |
Instance Variable | _exec_once |
Undocumented |
Instance Variable | _exec_once_mutex |
Undocumented |
Instance Variable | _exec_w_sync_once |
Undocumented |
Inherited from _InstanceLevelDispatch
:
Method | _adjust_fn_spec |
Undocumented |
Inherited from RefCollection
(via _InstanceLevelDispatch
):
Method | _memoized_attr_ref |
Undocumented |
Inherited from MemoizedSlots
(via _InstanceLevelDispatch
, RefCollection
):
Method | __getattr__ |
Undocumented |
Method | _fallback_getattr |
Undocumented |
Execute this event, and use a mutex if it has not been executed already for this collection, or was called by a previous _exec_w_sync_on_first_run call and raised an exception.
If _exec_w_sync_on_first_run was already called and didn't raise an exception, then a mutex is not used.
Execute this event, but only if it has not been executed already for this collection, or was called by a previous exec_once_unless_exception call and raised an exception.
If exec_once was already called, then this method will never run the callable regardless of whether it raised or not.