MCPcopy Index your code
hub / github.com/tidwall/evio / Add

Method Add

internal/notequeue.go:16–22  ·  view source on GitHub ↗
(note interface{})

Source from the content-addressed store, hash-verified

14}
15
16func (q *noteQueue) Add(note interface{}) (one bool) {
17 q.mu.Lock()
18 q.notes = append(q.notes, note)
19 n := len(q.notes)
20 q.mu.Unlock()
21 return n == 1
22}
23
24func (q *noteQueue) ForEach(iter func(note interface{}) error) error {
25 q.mu.Lock()

Callers 8

stdserveFunction · 0.80
serveFunction · 0.80
TestTickFunction · 0.80
TestShutdownFunction · 0.80
TestReuseportFunction · 0.80
TriggerMethod · 0.80
TriggerMethod · 0.80
plotitFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestTickFunction · 0.64
TestShutdownFunction · 0.64
TestReuseportFunction · 0.64