(async_fn, /, *args, **kwargs)
| 3181 | return False |
| 3182 | |
| 3183 | def 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 |
searching dependent graphs…