From ed761e425f5e1cc1123edcfab57c5f83a61a6a8c Mon Sep 17 00:00:00 2001 From: Tiomat85 Date: Tue, 5 Aug 2025 14:52:25 +0100 Subject: [PATCH] Move the StaleStreamException to the general Stream package. --- nion/utils/Stream.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nion/utils/Stream.py b/nion/utils/Stream.py index 6230c8d..920e0a4 100644 --- a/nion/utils/Stream.py +++ b/nion/utils/Stream.py @@ -561,3 +561,9 @@ def finalize(task: typing.Optional[asyncio.Task[None]]) -> None: async def next_value_change(self) -> ValueChange[T]: return await self.__event_queue.get() + + +class StaleStreamException(Exception): + """Exception class raised when a stream has gone stale (disconnected).""" + + pass \ No newline at end of file