create also _tasks holder

This commit is contained in:
əlemi 2021-11-22 02:55:58 +01:00
parent 3d88180892
commit d82ba7a975

View file

@ -11,6 +11,7 @@ class CallbacksHolder:
def __init__(self): def __init__(self):
super().__init__() super().__init__()
self._callbacks = {} self._callbacks = {}
self._tasks = {}
def register(self, key:Any, callback:Callable): def register(self, key:Any, callback:Callable):
if key not in self._callbacks: if key not in self._callbacks: