Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/arnauddri/algorithms
/ Len
Method
Len
data-structures/queue/queue.go:20–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
}
19
20
func
(q *Queue) Len() int {
21
//q.lock.Lock()
22
//defer q.lock.Unlock()
23
24
return
q.len
25
}
26
27
func
(q *Queue) isEmpty() bool {
28
q.lock.Lock()
Callers
1
TestNew
Function · 0.45
Calls
no outgoing calls
Tested by
1
TestNew
Function · 0.36