MCPcopy Index your code
hub / github.com/encounter/objdiff / poll

Method poll

objdiff-gui/src/views/file.rs:43–53  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

41 }
42
43 pub fn poll(&mut self) -> FileDialogResult {
44 if let Some(thread) = &mut self.thread {
45 if thread.is_finished() {
46 self.thread.take().unwrap().join().unwrap_or(FileDialogResult::None)
47 } else {
48 FileDialogResult::None
49 }
50 } else {
51 FileDialogResult::None
52 }
53 }
54}

Callers 1

pre_updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected