MCPcopy Create free account
hub / github.com/idank/explainshell / close

Method close

explainshell/caching_store.py:146–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

144 raise TypeError("CachingStore is read-only; use Store.create() to build a DB")
145
146 def close(self) -> None:
147 with self._stores_lock:
148 self._closed = True
149 stores = self._stores
150 self._stores = []
151
152 for thread_store in stores:
153 thread_store.close()
154 if hasattr(self._local, "store"):
155 del self._local.store
156
157 def find_man_page(
158 self, name: str, distro: str | None = None, release: str | None = None

Callers 1

cached_store_factoryFunction · 0.95

Calls

no outgoing calls

Tested by 1

cached_store_factoryFunction · 0.76