(&self, tool_id: &str)
| 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) |