Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/divan/gotrace
/ handler
Function
handler
examples/serverworker.go:11–16 ·
view source on GitHub ↗
(c net.Conn, ch chan int)
Source
from the content-addressed store, hash-verified
9
)
10
11
func
handler(c net.Conn, ch
chan
int) {
12
time.Sleep(50 * time.Millisecond)
13
ch <- 0
14
c.Write([]byte(
"ok"
))
15
c.Close()
16
}
17
18
func
worker(wch
chan
int, results
chan
int) {
19
for
{
Callers
1
server
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected