Update io.rs

This commit is contained in:
Cutieguwu
2026-01-01 14:40:51 -05:00
parent 2df9e8e0f2
commit 71675d0771

View File

@@ -20,6 +20,18 @@ pub fn get_stream_length<S: Seek>(stream: &mut S) -> io::Result<u64> {
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<File> {
OpenOptions::new()
.read(true)