1 parent 8fabbc9 commit 7facf38Copy full SHA for 7facf38
1 file changed
tractor/_streaming.py
@@ -272,9 +272,9 @@ async def aclose(self):
272
@asynccontextmanager
273
async def subscribe(
274
self,
275
-
276
) -> AsyncIterator[BroadcastReceiver]:
277
- '''Allocate and return a ``BroadcastReceiver`` which delegates
+ '''
+ Allocate and return a ``BroadcastReceiver`` which delegates
278
to this message stream.
279
280
This allows multiple local tasks to receive each their own copy
@@ -674,6 +674,7 @@ def consume(
674
result = consume(msg)
675
if result:
676
self._result = result
677
+ break
678
679
if not self._result:
680
while True:
0 commit comments