forked from goodboy/tractor
Break loop after result retreival
parent
a71a958f54
commit
33b0e36ad6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue