Call the callback with all collected pending paths, then clear.
(self)
| 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.""" |
no outgoing calls