MCPcopy Create free account
hub / github.com/GCWing/BitFun / cancel

Method cancel

src/crates/execution/agent-runtime/src/user_questions.rs:80–87  ·  view source on GitHub ↗
(&self, tool_id: &str)

Source from the content-addressed store, hash-verified

78 }
79
80 pub fn cancel(&self, tool_id: &str) -> bool {
81 if self.channels.remove(tool_id).is_some() {
82 debug!("Cancelled waiting: tool_id={}", tool_id);
83 true
84 } else {
85 false
86 }
87 }
88
89 pub fn has_pending(&self, tool_id: &str) -> bool {
90 self.channels.contains_key(tool_id)

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected