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

Struct goroutineSubagentManager

pkg/middleware/subagent_async_manager.go:17–23  ·  view source on GitHub ↗

goroutineSubagentManager implements builtin.SubagentManager using in-memory goroutines. It is used when async execution is enabled without process isolation so that tests and local runs don't rely on spawning external binaries.

Source from the content-addressed store, hash-verified

15// It is used when async execution is enabled without process isolation so that tests
16// and local runs don't rely on spawning external binaries.
17type goroutineSubagentManager struct {
18 middleware *SubAgentMiddleware
19
20 mu sync.RWMutex
21 instances map[string]*builtin.SubagentInstance
22 cancels map[string]context.CancelFunc
23}
24
25func newGoroutineSubagentManager(mw *SubAgentMiddleware) *goroutineSubagentManager {
26 return &goroutineSubagentManager{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected