MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / run

Function run

example_code/item_047.py:131–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 print(f"{remaining} ticks remaining")
130
131def run():
132 it = timer(4)
133 while True:
134 try:
135 if check_for_reset():
136 current = it.throw(Reset())
137 else:
138 current = next(it)
139 except StopIteration:
140 break
141 else:
142 announce(current)
143
144run()
145

Callers 1

item_047.pyFile · 0.70

Calls 7

resetMethod · 0.95
tickMethod · 0.95
timerFunction · 0.85
check_for_resetFunction · 0.85
ResetClass · 0.85
announceFunction · 0.85
TimerClass · 0.85

Tested by

no test coverage detected