MCPcopy Create free account
hub / github.com/Spinachead/arg / __init__

Method __init__

app/knowledge_base/kb_cache/base.py:12–19  ·  view source on GitHub ↗
(
        self, key: Union[str, Tuple], obj: Any = None, pool: "CachePool" = None
    )

Source from the content-addressed store, hash-verified

10
11class ThreadSafeObject:
12 def __init__(
13 self, key: Union[str, Tuple], obj: Any = None, pool: "CachePool" = None
14 ):
15 self._obj = obj
16 self._key = key
17 self._pool = pool
18 self._lock = threading.RLock()
19 self._loaded = threading.Event()
20
21 def __repr__(self) -> str:
22 cls = type(self).__name__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected