From c8e7eb8f0b7fe4e39cf8c6177df6efeacda93c4d 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()