From 33b0e36ad64b6e00e421ae6dd8c3a8db650a9d92 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 10 Apr 2022 19:18:40 -0400 Subject: [PATCH] Break loop after result retreival --- tractor/_streaming.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tractor/_streaming.py b/tractor/_streaming.py index 5c20359..8b98449 100644 --- a/tractor/_streaming.py +++ b/tractor/_streaming.py @@ -286,7 +286,6 @@ class MsgStream(trio.abc.Channel): @asynccontextmanager async def subscribe( self, - ) -> AsyncIterator[BroadcastReceiver]: ''' Allocate and return a ``BroadcastReceiver`` which delegates @@ -705,6 +704,7 @@ class Context: result = consume(msg) if result: self._result = result + break if not self._result: while True: