MCPcopy Create free account
hub / github.com/dask/dask / _timer_func

Method _timer_func

dask/diagnostics/progress.py:123–129  ·  view source on GitHub ↗

Background thread for updating the progress bar

(self)

Source from the content-addressed store, hash-verified

121 self._file.flush()
122
123 def _timer_func(self):
124 """Background thread for updating the progress bar"""
125 while self._running:
126 elapsed = default_timer() - self._start_time
127 if elapsed > self._minimum:
128 self._update_bar(elapsed)
129 time.sleep(self._dt)
130
131 def _update_bar(self, elapsed):
132 s = self._state

Callers

nothing calls this directly

Calls 1

_update_barMethod · 0.95

Tested by

no test coverage detected