()
| 574 | from tortoise.context import get_current_context |
| 575 | |
| 576 | async def main() -> None: |
| 577 | try: |
| 578 | await coro |
| 579 | finally: |
| 580 | ctx = get_current_context() |
| 581 | if ctx is not None: |
| 582 | await ctx.connections.close_all(discard=True) |
| 583 | |
| 584 | with from_thread.start_blocking_portal() as portal: |
| 585 | portal.call(main) |
nothing calls this directly
no test coverage detected
searching dependent graphs…