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