MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / _flush

Method _flush

openkb/watcher.py:50–57  ·  view source on GitHub ↗

Call the callback with all collected pending paths, then clear.

(self)

Source from the content-addressed store, hash-verified

48 self._timer.start()
49
50 def _flush(self) -> None:
51 """Call the callback with all collected pending paths, then clear."""
52 with self._lock:
53 paths = sorted(self._pending)
54 self._pending.clear()
55 self._timer = None
56 if paths:
57 self._callback(paths)
58
59 def _handle_event(self, event) -> None:
60 """Add the event's source path to pending if it's a supported file."""

Calls

no outgoing calls