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

Method GetTimelineCount

pkg/events/bus.go:548–552  ·  view source on GitHub ↗

GetTimelineCount 获取当前时间线事件数量

()

Source from the content-addressed store, hash-verified

546
547// GetTimelineCount 获取当前时间线事件数量
548func (eb *EventBus) GetTimelineCount() int {
549 eb.mu.RLock()
550 defer eb.mu.RUnlock()
551 return len(eb.timeline)
552}
553
554// Clear 清空事件总线(用于测试)
555func (eb *EventBus) Clear() {

Callers 3

TestGetTimelineCountFunction · 0.95
TestAutoCleanupWorkerFunction · 0.80
TestMemoryStabilityFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestGetTimelineCountFunction · 0.76
TestAutoCleanupWorkerFunction · 0.64
TestMemoryStabilityFunction · 0.64