From 71675d0771e10833a49d7a89f37493455d628734 Mon Sep 17 00:00:00 2001 From: Cutieguwu Date: Thu, 1 Jan 2026 14:40:51 -0500 Subject: [PATCH] Update io.rs --- src/io.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/io.rs b/src/io.rs index 8d3f824..18c04f4 100644 --- a/src/io.rs +++ b/src/io.rs @@ -20,6 +20,18 @@ pub fn get_stream_length(stream: &mut S) -> io::Result { len } +/* + * IO Error Poisoning: + * + * Attempt 2: + * + * Return to using safe-on-the-surface Rust, but attempt to execute the reads + * via a separate thread, hoping that the observed poisoning goes away with the + * thread being closed and doesn't affect the main thread. + * + * May need `mpsc` to transfer data without spawning a thread on every read. + */ + pub fn load_input() -> anyhow::Result { OpenOptions::new() .read(true)