MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __init__

Method __init__

pager_lib/tqdm/_monitor.py:30–39  ·  view source on GitHub ↗
(self, tqdm_cls, sleep_interval)

Source from the content-addressed store, hash-verified

28 _test = {} # internal vars for unit testing
29
30 def __init__(self, tqdm_cls, sleep_interval):
31 Thread.__init__(self)
32 self.daemon = True # kill thread when main killed (KeyboardInterrupt)
33 self.woken = 0 # last time woken up, to sync with monitor
34 self.tqdm_cls = tqdm_cls
35 self.sleep_interval = sleep_interval
36 self._time = self._test.get("time", time)
37 self.was_killed = self._test.get("Event", Event)()
38 atexit.register(self.exit)
39 self.start()
40
41 def exit(self):
42 self.was_killed.set()

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected