From 6f9229cd09b6cf73b3e023bd704b71cb34543dc1 Mon Sep 17 00:00:00 2001 From: overclockworked64 Date: Sat, 16 Oct 2021 17:50:55 +0200 Subject: [PATCH] Cancel nursery --- tractor/_clustering.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tractor/_clustering.py b/tractor/_clustering.py index 8fabc00..d7255fd 100644 --- a/tractor/_clustering.py +++ b/tractor/_clustering.py @@ -51,3 +51,5 @@ async def open_actor_cluster( assert len(portals) == count yield portals + + await an.cancel()