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

Function check_for_reset

example_code/item_047.py:124–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122RESETS = ORIGINAL_RESETS[:]
123
124def check_for_reset():
125 # Poll for external event
126 return RESETS.pop(0)
127
128def announce(remaining):
129 print(f"{remaining} ticks remaining")

Callers 1

runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected