MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / NewMemoryQueueFactory

Function NewMemoryQueueFactory

fs/contube/memory.go:37–42  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

35}
36
37func NewMemoryQueueFactory(ctx context.Context) TubeFactory {
38 return &MemoryQueueFactory{
39 ctx: ctx,
40 queues: make(map[string]*queue),
41 }
42}
43
44func (f *MemoryQueueFactory) getOrCreateChan(name string) chan Record {
45 f.mu.Lock()

Callers 4

TestFMWithGRPCRuntimeFunction · 0.92
TestMemoryTubeFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestFMWithGRPCRuntimeFunction · 0.74
TestMemoryTubeFunction · 0.68