MCPcopy Create free account
hub / github.com/encounter/objdiff / clear_finished

Method clear_finished

objdiff-core/src/jobs/mod.rs:86–90  ·  view source on GitHub ↗

Clears all finished jobs.

(&mut self)

Source from the content-addressed store, hash-verified

84
85 /// Clears all finished jobs.
86 pub fn clear_finished(&mut self) {
87 self.jobs.retain(|job| {
88 !(job.handle.is_none() && job.context.status.read().unwrap().error.is_none())
89 });
90 }
91
92 /// Clears all errored jobs.
93 pub fn clear_errored(&mut self) {

Callers 1

collect_resultsMethod · 0.80

Calls 1

is_noneMethod · 0.80

Tested by

no test coverage detected