Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
122
RESETS = ORIGINAL_RESETS[:]
123
124
def
check_for_reset():
125
# Poll for external event
126
return
RESETS.pop(0)
127
128
def
announce(remaining):
129
print(f
"{remaining} ticks remaining"
)
Callers
1
run
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected