Check if any functions are subscribed to a callback event

This commit is contained in:
Joscha 2016-05-23 02:39:08 +02:00
parent 2d0a7aa87a
commit 399a4a53ee

View file

@ -51,3 +51,12 @@ class Callbacks():
kwargs = c_info["kwargs"]
c(*args, **kwargs)
def exists(self, event):
"""
exists(event) -> bool
Are any functions subscribed to this event?
"""
return event in self._callbacks