MCPcopy Index your code
hub / github.com/easydiffusion/easydiffusion / delete

Method delete

ui/easydiffusion/task_manager.py:108–117  ·  view source on GitHub ↗
(self, key: Hashable)

Source from the content-addressed store, hash-verified

106 self._lock.release()
107
108 def delete(self, key: Hashable) -> bool:
109 if not self._lock.acquire(blocking=True, timeout=LOCK_TIMEOUT):
110 raise Exception("DataCache.delete" + ERR_LOCK_FAILED)
111 try:
112 if key not in self._base:
113 return False
114 del self._base[key]
115 return True
116 finally:
117 self._lock.release()
118
119 def keep(self, key: Hashable, ttl: int) -> bool:
120 if not self._lock.acquire(blocking=True, timeout=LOCK_TIMEOUT):

Callers 5

abortMethod · 0.80
continueTasksFunction · 0.80
main.jsFile · 0.80
undoableRemoveFunction · 0.80
deleteKeysFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected