Added docstring to EventGenerator class

This commit is contained in:
Fabio Manganiello 2019-02-28 01:28:51 +01:00
parent a9fb6a38dd
commit 2af47372b0

View file

@ -3,6 +3,12 @@ import threading
class EventGenerator(object): class EventGenerator(object):
"""
Abstract class for event generators. It allows to fire events to the bus and
trigger/register/unregister custom callback handlers associated to event
types. Both plugins and backends extend this class.
"""
def __init__(self, *args, **kwargs): def __init__(self, *args, **kwargs):
self._event_handlers = {} # Event type => callback map self._event_handlers = {} # Event type => callback map