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

Method IsCanceled

pkg/a2a/store.go:121–126  ·  view source on GitHub ↗

IsCanceled 检查是否已取消

(taskID string)

Source from the content-addressed store, hash-verified

119
120// IsCanceled 检查是否已取消
121func (s *InMemoryTaskStore) IsCanceled(taskID string) bool {
122 s.mu.RLock()
123 defer s.mu.RUnlock()
124
125 return s.activeCancellations[taskID]
126}
127
128// makeKey 生成存储键
129func makeKey(agentID, taskID string) string {

Calls

no outgoing calls