Use `an` var name in nested subactor debugging ex.

actor_cancelled_exc_type
Tyler Goodlet 2025-08-05 11:55:45 -04:00
parent 6344f9cdb7
commit ab013e3069
1 changed files with 4 additions and 4 deletions

View File

@ -21,12 +21,12 @@ async def breakpoint_forever():
async def spawn_until(depth=0):
""""A nested nursery that triggers another ``NameError``.
"""
async with tractor.open_nursery() as n:
async with tractor.open_nursery() as an:
if depth < 1:
await n.run_in_actor(breakpoint_forever)
await an.run_in_actor(breakpoint_forever)
p = await n.run_in_actor(
p = await an.run_in_actor(
name_error,
name='name_error'
)
@ -38,7 +38,7 @@ async def spawn_until(depth=0):
# recusrive call to spawn another process branching layer of
# the tree
depth -= 1
await n.run_in_actor(
await an.run_in_actor(
spawn_until,
depth=depth,
name=f'spawn_until_{depth}',