MCPcopy
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
20func (q *Queue) Len() int {
21 //q.lock.Lock()
22 //defer q.lock.Unlock()
23
24 return q.len
25}
26
27func (q *Queue) isEmpty() bool {
28 q.lock.Lock()

Callers 1

TestNewFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestNewFunction · 0.36