(iterator)
| 915 | if inspect.isgenerator(output): |
| 916 | |
| 917 | async def _aiter_from_iter(iterator): |
| 918 | while True: |
| 919 | try: |
| 920 | chunk = await run_in_threadpool(next, iterator) |
| 921 | yield chunk |
| 922 | except StopIteration: |
| 923 | break |
| 924 | |
| 925 | content_iter = _aiter_from_iter(output) |
| 926 | else: |