Rename `n: trio.Nursery` -> `tn` (task nursery)

aio_abandons
Tyler Goodlet 2024-12-04 14:01:38 -05:00
parent 8af9b0201d
commit cf3e6c1218
1 changed files with 4 additions and 4 deletions

View File

@ -58,7 +58,7 @@ async def trio_ctx(
raise_after_bp=not bp_before_started,
) as (first, chan),
trio.open_nursery() as n,
trio.open_nursery() as tn,
):
assert first == 'start'
@ -67,7 +67,7 @@ async def trio_ctx(
await ctx.started(first)
n.start_soon(
tn.start_soon(
to_asyncio.run_task,
aio_sleep_forever,
)
@ -83,8 +83,8 @@ async def main(
debug_mode=True,
maybe_enable_greenback=True,
# loglevel='devx',
) as n:
ptl: Portal = await n.start_actor(
) as an:
ptl: Portal = await an.start_actor(
'aio_daemon',
enable_modules=[__name__],
infect_asyncio=True,