Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 数量
178
func
(p *Pool) Size() int {
179
p.mu.RLock()
180
defer
p.mu.RUnlock()
181
return
len(p.agents)
182
}
183
184
// Shutdown 关闭所有 Agent
185
func
(p *Pool) Shutdown() error {
Callers
10
TestPool_Create
Function · 0.95
TestPool_MaxCapacity
Function · 0.95
TestPool_Remove
Function · 0.95
TestPool_ConcurrentAccess
Function · 0.95
TestPool_Shutdown
Function · 0.95
Stat
Method · 0.45
Stat
Method · 0.45
ListInfo
Method · 0.45
Middleware
Method · 0.45
GetStats
Method · 0.45
Calls
no outgoing calls
Tested by
5
TestPool_Create
Function · 0.76
TestPool_MaxCapacity
Function · 0.76
TestPool_Remove
Function · 0.76
TestPool_ConcurrentAccess
Function · 0.76
TestPool_Shutdown
Function · 0.76