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

Function func

Lib/test/test_asyncio/utils.py:593–599  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

591async def await_without_task(coro):
592 exc = None
593 def func():
594 try:
595 for _ in coro.__await__():
596 pass
597 except BaseException as err:
598 nonlocal exc
599 exc = err
600 asyncio.get_running_loop().call_soon(func)
601 await asyncio.sleep(0)
602 if exc is not None:

Callers 15

doMethod · 0.70
coroMethod · 0.70
runnerMethod · 0.70
mainMethod · 0.70
test_common_errorsMethod · 0.50
test_text_errorsMethod · 0.50
_innerFunction · 0.50

Calls 1

__await__Method · 0.45

Tested by 15

doMethod · 0.56
coroMethod · 0.56
runnerMethod · 0.56
mainMethod · 0.56
test_common_errorsMethod · 0.40
test_text_errorsMethod · 0.40
wrappedFunction · 0.40

Used in the wild real call sites across dependent graphs

searching dependent graphs…