MCPcopy Index your code
hub / github.com/VectifyAI/OpenKB / write

Method write

openkb/locks.py:71–81  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

69
70 @contextlib.contextmanager
71 def write(self) -> Iterator[None]:
72 with self._condition:
73 while self._writer or self._readers:
74 self._condition.wait()
75 self._writer = True
76 try:
77 yield
78 finally:
79 with self._condition:
80 self._writer = False
81 self._condition.notify_all()
82
83
84def _held_locks() -> dict[Path, tuple[int, int]]:

Callers 13

append_logFunction · 0.80
_download_pdf_chunkedFunction · 0.80
kb_lockFunction · 0.80
atomic_write_bytesFunction · 0.80
startMethod · 0.80
_runMethod · 0.80
stopMethod · 0.80
_llm_call_asyncFunction · 0.80
_warn_if_truncatedFunction · 0.80
_compile_conceptsFunction · 0.80
_fmtFunction · 0.80
_run_turnFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected