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

Function start

python/python3/tornado/autoreload.py:117–132  ·  view source on GitHub ↗

Begins watching source files for changes. .. versionchanged:: 5.0 The ``io_loop`` argument (deprecated since version 4.1) has been removed.

(check_time: int = 500)

Source from the content-addressed store, hash-verified

115
116
117def start(check_time: int = 500) -> None:
118 """Begins watching source files for changes.
119
120 .. versionchanged:: 5.0
121 The ``io_loop`` argument (deprecated since version 4.1) has been removed.
122 """
123 io_loop = ioloop.IOLoop.current()
124 if io_loop in _io_loops:
125 return
126 _io_loops[io_loop] = True
127 if len(_io_loops) > 1:
128 gen_log.warning("tornado.autoreload started more than once in the same process")
129 modify_times = {} # type: Dict[str, float]
130 callback = functools.partial(_reload_on_update, modify_times)
131 scheduler = ioloop.PeriodicCallback(callback, check_time)
132 scheduler.start()
133
134
135def wait() -> None:

Callers

nothing calls this directly

Calls 2

startMethod · 0.95
currentMethod · 0.80

Tested by

no test coverage detected