MCPcopy Create free account
hub / github.com/EasyIME/PIME / wait

Function wait

python/python3/tornado/autoreload.py:135–144  ·  view source on GitHub ↗

Wait for a watched file to change, then restart the process. Intended to be used at the end of scripts like unit test runners, to run the tests again after any source file changes (but see also the command-line interface in `main`)

()

Source from the content-addressed store, hash-verified

133
134
135def wait() -> None:
136 """Wait for a watched file to change, then restart the process.
137
138 Intended to be used at the end of scripts like unit test runners,
139 to run the tests again after any source file changes (but see also
140 the command-line interface in `main`)
141 """
142 io_loop = ioloop.IOLoop()
143 io_loop.add_callback(start)
144 io_loop.start()
145
146
147def watch(filename: str) -> None:

Callers 1

mainFunction · 0.85

Calls 2

add_callbackMethod · 0.95
startMethod · 0.95

Tested by

no test coverage detected