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

Method _is_expired

ui/easydiffusion/task_manager.py:74–75  ·  view source on GitHub ↗
(self, timestamp: int)

Source from the content-addressed store, hash-verified

72 return int(time.time()) + ttl
73
74 def _is_expired(self, timestamp: int) -> bool:
75 return int(time.time()) >= timestamp
76
77 def clean(self) -> None:
78 if not self._lock.acquire(blocking=True, timeout=LOCK_TIMEOUT):

Callers 2

cleanMethod · 0.95
tryGetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected