Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/egonelbre/exp
/ New
Function
New
ring/buffer.go:29–35 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
27
}
28
29
func
New() *Ring {
30
ring := &Ring{}
31
for
i :=
range
ring.buffer {
32
ring.buffer[i].sequence = int64(i)
33
}
34
return
ring
35
}
36
37
func
(ring *Ring) Allocate() *Cell {
38
busywait := 16
Callers
1
main
Function · 0.92
Calls
no outgoing calls
Tested by
no test coverage detected