Flip to `collapse_eg()` use in `.trionics.gather_contexts()`

moar_eg_smoothing
Tyler Goodlet 2025-06-15 23:29:13 -04:00
parent 7de7fd0afd
commit af3c14b250
1 changed files with 3 additions and 8 deletions

View File

@ -40,7 +40,7 @@ from typing import (
import trio
from tractor._state import current_actor
from tractor.log import get_logger
# from ._beg import collapse_eg
from ._beg import collapse_eg
if TYPE_CHECKING:
@ -151,13 +151,8 @@ async def gather_contexts(
)
async with (
# collapse_eg(),
trio.open_nursery(
# strict_exception_groups=False,
# ^XXX^ TODO? soo roll our own then ??
# -> since we kinda want the "if only one `.exception` then
# just raise that" interface?
) as tn,
collapse_eg(),
trio.open_nursery() as tn,
):
for mngr in mngrs:
tn.start_soon(