forked from goodboy/tractor
1
0
Fork 0

Break loop after result retreival

ctx_result_consumption
Tyler Goodlet 2022-04-10 19:18:40 -04:00
parent a71a958f54
commit 33b0e36ad6
1 changed files with 1 additions and 1 deletions

View File

@ -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: