Expand description
Blocking Read and Write ends of async streams.
The tar code is synchronous and runs in spawn_blocking. These types move its bytes through
async streams one chunk at a time, so memory stays bounded. Every wait ends when the transfer
is cancelled or when no bytes moved for the stall time.
Structs§
- Sync
Reader - Reads the chunks of an async stream.
- Sync
Writer - Sends what is written to a bounded channel, in chunks.
Constants§
- CHANNEL_
CHUNKS - Chunks a transfer channel holds before the writer waits.
- CHUNK
- Size of the chunks a
SyncWritersends. - STALL
- Longest a transfer waits for bytes to move before it fails.