MCPcopy Create free account
hub / github.com/astercloud/aster / RemoveCancellation

Method RemoveCancellation

pkg/a2a/store.go:113–118  ·  view source on GitHub ↗

RemoveCancellation 移除取消信号

(taskID string)

Source from the content-addressed store, hash-verified

111
112// RemoveCancellation 移除取消信号
113func (s *InMemoryTaskStore) RemoveCancellation(taskID string) {
114 s.mu.Lock()
115 defer s.mu.Unlock()
116
117 delete(s.activeCancellations, taskID)
118}
119
120// IsCanceled 检查是否已取消
121func (s *InMemoryTaskStore) IsCanceled(taskID string) bool {

Callers 1

Calls 1

deleteFunction · 0.85

Tested by 1