MCPcopy Index your code
hub / github.com/RustPython/RustPython / run_yielding_async_fn

Function run_yielding_async_fn

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

Source from the content-addressed store, hash-verified

3117
3118
3119def run_yielding_async_fn(async_fn, /, *args, **kwargs):
3120 coro = async_fn(*args, **kwargs)
3121 try:
3122 while True:
3123 try:
3124 coro.send(None)
3125 except StopIteration as e:
3126 return e.value
3127 finally:
3128 coro.close()
3129
3130
3131def is_libssl_fips_mode():

Callers 1

Calls 2

sendMethod · 0.45
closeMethod · 0.45

Tested by 1