MCPcopy Index your code
hub / github.com/coder/coder / Len

Method Len

cli/cliutil/queue.go:87–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

85}
86
87func (q *Queue[T]) Len() int {
88 q.mu.Lock()
89 defer q.mu.Unlock()
90 return len(q.items)
91}
92
93type reportTask struct {
94 link string

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 15

TestUserSecretAuditFunction · 0.36
TestUserLatencyInsightsFunction · 0.36
TestGetUserStatusCountsFunction · 0.36
TestExternalAuthByIDFunction · 0.36
TestGitSSHKeyFunction · 0.36
TestWorkspaceAgentFunction · 0.36