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

Method Size

pkg/core/pool.go:178–182  ·  view source on GitHub ↗

Size 返回池中 Agent 数量

()

Source from the content-addressed store, hash-verified

176
177// Size 返回池中 Agent 数量
178func (p *Pool) Size() int {
179 p.mu.RLock()
180 defer p.mu.RUnlock()
181 return len(p.agents)
182}
183
184// Shutdown 关闭所有 Agent
185func (p *Pool) Shutdown() error {

Callers 10

TestPool_CreateFunction · 0.95
TestPool_MaxCapacityFunction · 0.95
TestPool_RemoveFunction · 0.95
TestPool_ShutdownFunction · 0.95
StatMethod · 0.45
StatMethod · 0.45
ListInfoMethod · 0.45
MiddlewareMethod · 0.45
GetStatsMethod · 0.45

Calls

no outgoing calls

Tested by 5

TestPool_CreateFunction · 0.76
TestPool_MaxCapacityFunction · 0.76
TestPool_RemoveFunction · 0.76
TestPool_ShutdownFunction · 0.76