compile_error!("TODO: Make `save_to_chain() that takes callback for write stream to create compression stream & write to it, since io_uring backing takes care of that, but we want the uncompressed metadata writing to be the same.");
todo!("^^^ Ehh... No, this isn't right... `stream` is the *encoder* stream, we still need to do the metadata thing done in `_sync`()... XXX: Can we factor that out to something that will take a callback maybe??? Idk... im tired...");
save_chain_to_sync(&mutstream,chain,compress)?;
stream.flush()?;
drop(stream);// NOTE: Drop the sending side so the recv side can know there is no more data. **MUST** be done before the `.join()`.
bg.join().expect("Fatal error in background I/O thread")?;