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

Method AddCancellation

pkg/a2a/store.go:105–110  ·  view source on GitHub ↗

AddCancellation 添加取消信号

(taskID string)

Source from the content-addressed store, hash-verified

103
104// AddCancellation 添加取消信号
105func (s *InMemoryTaskStore) AddCancellation(taskID string) {
106 s.mu.Lock()
107 defer s.mu.Unlock()
108
109 s.activeCancellations[taskID] = true
110}
111
112// RemoveCancellation 移除取消信号
113func (s *InMemoryTaskStore) RemoveCancellation(taskID string) {

Callers 1

Calls

no outgoing calls

Tested by 1