From bcf5b9fd1869f72818b74635b385d8c2b90d6e48 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 2 Sep 2021 13:16:21 -0400 Subject: [PATCH] Add news fragment --- newsfragments/229.feature.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 newsfragments/229.feature.rst diff --git a/newsfragments/229.feature.rst b/newsfragments/229.feature.rst new file mode 100644 index 0000000..bda005c --- /dev/null +++ b/newsfragments/229.feature.rst @@ -0,0 +1,12 @@ +Add `tokio-style broadcast channels +`_ as +a solution for `#204 `_ and +discussed thoroughly in `trio/#987 +`_. + +This gives us local task broadcast functionality using a new +``BroadcastReceiver`` type which can wrap ``trio.ReceiveChannel`` and +provide fan-out copies of a stream of data to every subscribed consumer. +We use this new machinery to provide a ``ReceiveMsgStream.subscribe()`` +async context manager which can be used by actor-local concumers tasks +to easily pull from a shared and dynamic IPC stream.