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

Method stop

python/python3/tornado/testing.py:333–349  ·  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

331 return ret
332
333 def stop(self, _arg: Any = None, **kwargs: Any) -> None:
334 """Stops the `.IOLoop`, causing one pending (or future) call to `wait()`
335 to return.
336
337 Keyword arguments or a single positional argument passed to `stop()` are
338 saved and will be returned by `wait()`.
339
340 .. deprecated:: 5.1
341
342 `stop` and `wait` are deprecated; use ``@gen_test`` instead.
343 """
344 assert _arg is None or not kwargs
345 self.__stop_args = kwargs or _arg
346 if self.__running:
347 self.io_loop.stop()
348 self.__running = False
349 self.__stopped = True
350
351 def wait(
352 self,

Callers 3

_handle_exceptionMethod · 0.95
timeout_funcMethod · 0.95
tearDownMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected