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

Method slow_stop

python/python3/tornado/test/httpclient_test.py:804–810  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

802
803 @gen.coroutine
804 def slow_stop():
805 yield self.server.close_all_connections()
806 # The number of iterations is difficult to predict. Typically,
807 # one is sufficient, although sometimes it needs more.
808 for i in range(5):
809 yield
810 self.server_ioloop.stop()
811
812 self.server_ioloop.add_callback(slow_stop)
813

Callers

nothing calls this directly

Calls 2

close_all_connectionsMethod · 0.80
stopMethod · 0.45

Tested by

no test coverage detected