MCPcopy Create free account
hub / github.com/celzero/firestack / newRing

Function newRing

intra/log/ring.go:28–45  ·  view source on GitHub ↗

NewRing creates a new ring buffer with the given capacity (256 if <= 1). evict must be light as it is called for each element displaced by a push, under contention.

(ctx context.Context, capacity int, evict func(T))

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

defaultLoggerFunction · 0.85

Calls 1

processMethod · 0.95

Tested by

no test coverage detected