MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / __schedule_flush

Method __schedule_flush

bleachbit/Options.py:177–188  ·  view source on GitHub ↗

Mark configuration dirty and schedule a delayed flush.

(self)

Source from the content-addressed store, hash-verified

175 self.__flush_locked()
176
177 def __schedule_flush(self):
178 """Mark configuration dirty and schedule a delayed flush."""
179 with self._flush_lock:
180 self._dirty = True
181 self._flush_generation += 1
182 generation = self._flush_generation
183 if self._flush_timer is not None:
184 self._flush_timer.cancel()
185 self._flush_timer = threading.Timer(
186 FLUSH_DELAY_SECS, self.__flush_after_delay, args=(generation,))
187 self._flush_timer.daemon = True
188 self._flush_timer.start()
189
190 def __flush(self, force=False):
191 """Acquire the lock and flush to disk."""

Callers 9

__init__Method · 0.95
setMethod · 0.95
set_listMethod · 0.95
set_whitelist_pathsMethod · 0.95
set_custom_pathsMethod · 0.95
set_languageMethod · 0.95
set_treeMethod · 0.95

Calls 2

cancelMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected