forked from goodboy/tractor
1
0
Fork 0

Cancel scope on stream consumer completion

round_2_ci_windows
Tyler Goodlet 2021-05-02 14:13:23 -04:00
parent 14114547e8
commit 4846c6d498
1 changed files with 2 additions and 0 deletions

View File

@ -338,6 +338,8 @@ async def test_respawn_consumer_task(
print("all values streamed, BREAKING") print("all values streamed, BREAKING")
break break
cs.cancel()
# TODO: this is justification for a # TODO: this is justification for a
# ``ActorNursery.stream_from_actor()`` helper? # ``ActorNursery.stream_from_actor()`` helper?
await portal.cancel_actor() await portal.cancel_actor()