MCPcopy
hub / github.com/tornadoweb/tornado / stop

Method stop

tornado/testing.py:277–293  ·  view source on GitHub ↗

Stops the `.IOLoop`, causing one pending (or future) call to `wait()` to return. Keyword arguments or a single positional argument passed to `stop()` are saved and will be returned by `wait()`. .. deprecated:: 5.1 `stop` and `wait` are deprecated; use ``

(self, _arg: Any = None, **kwargs: Any)

Source from the content-addressed store, hash-verified

275 raise ValueError("Return value from test method ignored: %r" % result)
276
277 def stop(self, _arg: Any = None, **kwargs: Any) -> None:
278 """Stops the `.IOLoop`, causing one pending (or future) call to `wait()`
279 to return.
280
281 Keyword arguments or a single positional argument passed to `stop()` are
282 saved and will be returned by `wait()`.
283
284 .. deprecated:: 5.1
285
286 `stop` and `wait` are deprecated; use ``@gen_test`` instead.
287 """
288 assert _arg is None or not kwargs
289 self.__stop_args = kwargs or _arg
290 if self.__running:
291 self.io_loop.stop()
292 self.__running = False
293 self.__stopped = True
294
295 def wait(
296 self,

Callers 3

_handle_exceptionMethod · 0.95
timeout_funcMethod · 0.95
tearDownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected