From 6751349987ceea7a7a0b05f5edc55e81a5d42ffb Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 5 Dec 2021 18:28:02 -0500 Subject: [PATCH] Add a stream overrun exception --- tractor/_exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tractor/_exceptions.py b/tractor/_exceptions.py index 9c3edac..79bcd3c 100644 --- a/tractor/_exceptions.py +++ b/tractor/_exceptions.py @@ -61,6 +61,10 @@ class NoRuntime(RuntimeError): "The root actor has not been initialized yet" +class StreamOverrun(trio.TooSlowError): + "This stream was overrun by sender" + + def pack_error( exc: BaseException, tb=None,