Skip to main content

spawn_image_decode

Function spawn_image_decode 

Source
pub fn spawn_image_decode(path: PathBuf, generation: u64, tx: Sender<WorkerMsg>)
Expand description

Decodes path off-thread, sending a WorkerMsg::ImageMeta result through tx tagged with generation.

The generation tag is what lets workers::merge drop a result whose selection has already been abandoned.