class MessageTaskManager:
_list = {}
@staticmethod
def add_task(uid, tsk):
MessageTaskManager._list.update({uid: tsk})
def del_task(uid):
del MessageTaskManager._list[uid]
def get():
return MessageTaskManager._list
class FinishedTasks:
def add_task(uid, result):
FinishedTasks._list.update({uid: result})
del FinishedTasks._list[uid]
return FinishedTasks._list