(label: str)
| 684 | record = set() |
| 685 | |
| 686 | async def agen(label: str) -> AsyncGenerator[int, None]: |
| 687 | assert sniffio.current_async_library() == label |
| 688 | try: |
| 689 | yield 1 |
| 690 | finally: |
| 691 | library = sniffio.current_async_library() |
| 692 | with contextlib.suppress(trio.Cancelled): |
| 693 | await sys.modules[library].sleep(0) |
| 694 | record.add((label, library)) |
| 695 | |
| 696 | async def iterate_in_aio() -> None: |
| 697 | await agen("asyncio").asend(None) |
no test coverage detected
searching dependent graphs…