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

Function run_yielding_async_fn

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

Source from the content-addressed store, hash-verified

3198
3199
3200def run_yielding_async_fn(async_fn, /, *args, **kwargs):
3201 coro = async_fn(*args, **kwargs)
3202 try:
3203 while True:
3204 try:
3205 coro.send(None)
3206 except StopIteration as e:
3207 return e.value
3208 finally:
3209 coro.close()
3210
3211
3212def is_libssl_fips_mode():

Callers 1

Calls 2

sendMethod · 0.45
closeMethod · 0.45

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…