mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-05-05 15:17:28 +08:00
Slim subagent runtime surface and remove legacy interfaces
This commit is contained in:
@@ -18,15 +18,6 @@ func truncateString(s string, maxLen int) string {
|
||||
return s[:maxLen]
|
||||
}
|
||||
|
||||
func safeCloseSignal(v interface{}) {
|
||||
ch, ok := v.(chan struct{})
|
||||
if !ok || ch == nil {
|
||||
return
|
||||
}
|
||||
defer func() { _ = recover() }()
|
||||
close(ch)
|
||||
}
|
||||
|
||||
type cancelGuard struct {
|
||||
mu sync.Mutex
|
||||
cancel context.CancelFunc
|
||||
|
||||
Reference in New Issue
Block a user