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

Method slow_stop

tornado/test/httpclient_test.py:901–907  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

899
900 @gen.coroutine
901 def slow_stop():
902 yield self.server.close_all_connections()
903 # The number of iterations is difficult to predict. Typically,
904 # one is sufficient, although sometimes it needs more.
905 for i in range(5):
906 yield
907 self.server_ioloop.stop()
908
909 self.server_ioloop.add_callback(slow_stop)
910

Callers

nothing calls this directly

Calls 2

close_all_connectionsMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected