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

Method clear

ui/easydiffusion/task_manager.py:100–106  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 self._lock.release()
99
100 def clear(self) -> None:
101 if not self._lock.acquire(blocking=True, timeout=LOCK_TIMEOUT):
102 raise Exception("DataCache.clear" + ERR_LOCK_FAILED)
103 try:
104 self._base.clear()
105 finally:
106 self._lock.release()
107
108 def delete(self, key: Hashable) -> bool:
109 if not self._lock.acquire(blocking=True, timeout=LOCK_TIMEOUT):

Callers 1

thread_renderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected