MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / cancel_turn

Method cancel_turn

atomic-agent/src/watcher/fallback.rs:253–259  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

251 }
252
253 fn cancel_turn(&mut self) -> Pin<Box<dyn Future<Output = AgentResult<()>> + Send + '_>> {
254 Box::pin(async move {
255 self.pre_snapshot = None;
256 self.active_session = None;
257 Ok(())
258 })
259 }
260
261 fn is_active(&self) -> bool {
262 self.pre_snapshot.is_some()

Calls

no outgoing calls