MCPcopy Index your code
hub / github.com/bugy/script-server / kill_ioloop

Method kill_ioloop

src/tests/web/server_test.py:347–355  ·  view source on GitHub ↗
(self, io_loop)

Source from the content-addressed store, hash-verified

345 test_utils.cleanup()
346
347 def kill_ioloop(self, io_loop):
348 if not io_loop or not io_loop.asyncio_loop.is_running():
349 return
350
351 io_loop.add_callback(io_loop.stop)
352
353 self.ioloop_thread.join(timeout=50)
354 io_loop.close()
355 set_event_loop_policy(None)

Callers 1

tearDownMethod · 0.95

Calls 2

is_runningMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected