MCPcopy
hub / github.com/opendevops-cn/opendevops / wait

Function wait

scripts/tornado_source_code/tornado/autoreload.py:136–145  ·  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

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

Callers 1

mainFunction · 0.85

Calls 2

add_callbackMethod · 0.95
startMethod · 0.95

Tested by

no test coverage detected