Add more docs and comments for TempBufferCache

This commit is contained in:
PThorpe92
2025-08-05 14:45:46 -04:00
parent 34d90d5acb
commit faf248df03
6 changed files with 31 additions and 18 deletions

View File

@@ -430,7 +430,7 @@ fn write_at(io: &impl IO, file: Arc<dyn File>, offset: usize, data: &[u8]) {
#[allow(clippy::arc_with_non_send_sync)]
let buffer = Arc::new(Buffer::new(data.to_vec()));
let _buf = buffer.clone();
let completion = Completion::new_write(|_| {
let completion = Completion::new_write(move |_| {
// reference the buffer to keep alive for async io
let _buf = _buf.clone();
});