From 558c44fdbec9119b197782bfab98a44d1bd3d73b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 2 Sep 2021 08:33:29 -0400 Subject: [PATCH] Add newsfragment --- newsfragments/230.removal.rst | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 newsfragments/230.removal.rst diff --git a/newsfragments/230.removal.rst b/newsfragments/230.removal.rst new file mode 100644 index 0000000..afb7cdb --- /dev/null +++ b/newsfragments/230.removal.rst @@ -0,0 +1,9 @@ +Drop stream "shielding" support which was originally added to sidestep +a cancelled call to ``.receive()`` + +In the original api design a stream instance was returned directly from +a call to ``Portal.run()`` and thus there was no "exit phase" to handle +cancellations and errors which would trigger implicit closure. Now that +we have said enter/exit semantics with ``Portal.open_stream_from()`` and +``Context.open_stream()`` we can drop this implicit (and arguably +confusing) behavior.