Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/blindlobstar/go-interview-problems
/ Pop
Method
Pop
10-concurrent-queue/solution/solution.go:24–31 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
22
}
23
24
func
(q *Queue) Pop() int {
25
select
{
26
case
val := <-q.ch:
27
return
val
28
default:
29
return
-1
30
}
31
}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected