def __init__(self): self._rules = tools.SopelMemoryWithDefault(list) self._commands = tools.SopelMemoryWithDefault(dict) self._nick_commands = tools.SopelMemoryWithDefault(dict) self._action_commands = tools.SopelMemoryWithDefault(dict) self._url_callbacks = tools.SopelMemoryWithDefault(list) self._register_lock = threading.Lock()
def clear_jobs(self): with self._mutex: self._jobs = tools.SopelMemoryWithDefault(list) LOGGER.debug('Successfully unregistered all jobs')
def __init__(self, manager): super().__init__(manager) self._jobs = tools.SopelMemoryWithDefault(list)