MCPcopy
hub / github.com/mudler/LocalAI / Len

Method Len

pkg/xsync/map.go:50–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50func (m *SyncedMap[K, V]) Len() int {
51 m.mu.RLock()
52 defer m.mu.RUnlock()
53 return len(m.m)
54}
55
56func (m *SyncedMap[K, V]) Iterate(f func(key K, value V) bool) {
57 m.mu.RLock()

Callers 14

messageTextFunction · 0.45
WriteMethod · 0.45
TraceMiddlewareFunction · 0.45
streamTranscriptionFunction · 0.45
handleMCPCIJobFunction · 0.45
RedactNERSegmentsFunction · 0.45
AudioSnippetFromPCMFunction · 0.45
audio_test.goFile · 0.45
SystemPromptFunction · 0.45
monitorLogsMethod · 0.45

Calls

no outgoing calls

Tested by 1

processMCPCIJobForTestFunction · 0.36