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