From d8214735b946bfa283c6fe5a7fc541054abd86dc Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 12 Dec 2022 14:53:59 -0500 Subject: [PATCH] Add bugfix nooz --- nooz/344.bugfix.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nooz/344.bugfix.rst diff --git a/nooz/344.bugfix.rst b/nooz/344.bugfix.rst new file mode 100644 index 0000000..997ee77 --- /dev/null +++ b/nooz/344.bugfix.rst @@ -0,0 +1,11 @@ +Always ``list``-cast the ``mngrs`` input to +``.trionics.gather_contexts()`` and ensure its size otherwise raise +a ``ValueError``. + +Turns out that trying to pass an inline-style generator comprehension +doesn't seem to work inside the ``async with`` expression? Further, in +such a case we can get a hang waiting on the all-entered event +completion when the internal mngrs iteration is a noop. Instead we +always greedily check a size and error on empty input; the lazy +iteration of a generator input is not beneficial anyway since we're +entering all manager instances in concurrent tasks.