MCPcopy Index your code
hub / github.com/python/cpython / close_loop

Method close_loop

Lib/test/test_asyncio/utils.py:530–536  ·  view source on GitHub ↗
(loop)

Source from the content-addressed store, hash-verified

528class TestCase(unittest.TestCase):
529 @staticmethod
530 def close_loop(loop):
531 if loop._default_executor is not None:
532 if not loop.is_closed():
533 loop.run_until_complete(loop.shutdown_default_executor())
534 else:
535 loop._default_executor.shutdown(wait=True)
536 loop.close()
537
538 def set_event_loop(self, loop, *, cleanup=True):
539 if loop is None:

Callers 2

test_ctrl_cMethod · 0.45

Calls 5

is_closedMethod · 0.45
run_until_completeMethod · 0.45
shutdownMethod · 0.45
closeMethod · 0.45

Tested by 2

test_ctrl_cMethod · 0.36