(
self, key: Union[str, Tuple], obj: Any = None, pool: "CachePool" = None
)
| 10 | |
| 11 | class 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__ |
nothing calls this directly
no outgoing calls
no test coverage detected