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

Function run_no_yield_async_fn

Lib/test/support/__init__.py:3183–3192  ·  view source on GitHub ↗
(async_fn, /, *args, **kwargs)

Source from the content-addressed store, hash-verified

3181 return False
3182
3183def run_no_yield_async_fn(async_fn, /, *args, **kwargs):
3184 coro = async_fn(*args, **kwargs)
3185 try:
3186 coro.send(None)
3187 except StopIteration as e:
3188 return e.value
3189 else:
3190 raise AssertionError("coroutine did not complete")
3191 finally:
3192 coro.close()
3193
3194
3195@types.coroutine

Callers 2

run_async_testMethod · 0.90

Calls 2

sendMethod · 0.45
closeMethod · 0.45

Tested by 2

run_async_testMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…