Use `an` var name in nested subactor debugging ex.
							parent
							
								
									06b5e19cc4
								
							
						
					
					
						commit
						769b061a67
					
				|  | @ -21,12 +21,12 @@ async def breakpoint_forever(): | ||||||
| async def spawn_until(depth=0): | async def spawn_until(depth=0): | ||||||
|     """"A nested nursery that triggers another ``NameError``. |     """"A nested nursery that triggers another ``NameError``. | ||||||
|     """ |     """ | ||||||
|     async with tractor.open_nursery() as n: |     async with tractor.open_nursery() as an: | ||||||
|         if depth < 1: |         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_error, | ||||||
|                 name='name_error' |                 name='name_error' | ||||||
|             ) |             ) | ||||||
|  | @ -38,7 +38,7 @@ async def spawn_until(depth=0): | ||||||
|             # recusrive call to spawn another process branching layer of |             # recusrive call to spawn another process branching layer of | ||||||
|             # the tree |             # the tree | ||||||
|             depth -= 1 |             depth -= 1 | ||||||
|             await n.run_in_actor( |             await an.run_in_actor( | ||||||
|                 spawn_until, |                 spawn_until, | ||||||
|                 depth=depth, |                 depth=depth, | ||||||
|                 name=f'spawn_until_{depth}', |                 name=f'spawn_until_{depth}', | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue