MCPcopy Create free account
hub / github.com/Freaky/Compactor / run

Method run

src/compression.rs:69–81  ·  view source on GitHub ↗
(self, control: &ControlToken<Self::Status>)

Source from the content-addressed store, hash-verified

67 type Status = ();
68
69 fn run(self, control: &ControlToken<Self::Status>) -> Self::Output {
70 for file in &self.files_in {
71 if control.is_cancelled_with_pause() {
72 break;
73 }
74
75 let file = file.0;
76 let ret = handle_file(&file, self.compression);
77 if self.files_out.send((file, ret)).is_err() {
78 break;
79 }
80 }
81 }
82}

Callers

nothing calls this directly

Calls 3

handle_fileFunction · 0.85
sendMethod · 0.80

Tested by

no test coverage detected