MCPcopy
hub / github.com/AdnanHodzic/auto-cpufreq / run

Method run

auto_cpufreq/modules/system_monitor.py:292–301  ·  view source on GitHub ↗
(self, on_quit: Callable[[], None] | None = None)

Source from the content-addressed store, hash-verified

290 )
291
292 def run(self, on_quit: Callable[[], None] | None = None):
293 try:
294 if on_quit:
295 self.on_quit = on_quit
296 self.loop.set_alarm_in(0, self.update) # type: ignore
297 self.loop.run()
298 except KeyboardInterrupt:
299 if on_quit:
300 on_quit()
301 sys.exit(0)

Callers 5

mainFunction · 0.95
about_dialogMethod · 0.80
_remove_daemonMethod · 0.80
install_daemonMethod · 0.80
handle_updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected