MCPcopy Create free account
hub / github.com/Botloader/botloader / is_complete

Method is_complete

components/scheduler/src/integration_testing.rs:82–98  ·  view source on GitHub ↗
(self: &Arc<Self>)

Source from the content-addressed store, hash-verified

80 }
81
82 pub fn is_complete(self: &Arc<Self>) -> CompletionStatus {
83 let locked = self.state.read().unwrap();
84
85 if let Some(err) = &locked.err {
86 return CompletionStatus::Error(err.clone());
87 }
88
89 if locked.expecting_completions <= locked.completions {
90 return CompletionStatus::Complete(locked.completions);
91 }
92
93 if locked.last_completion.elapsed() > Duration::from_secs(120) {
94 return CompletionStatus::Timeout;
95 }
96
97 CompletionStatus::Pending
98 }
99}
100
101#[async_trait::async_trait]

Callers 1

runFunction · 0.80

Calls 2

ErrorEnum · 0.70
readMethod · 0.65

Tested by

no test coverage detected