MCPcopy Create free account
hub / github.com/divan/gotrace / worker

Function worker

examples/serverworker.go:18–24  ·  view source on GitHub ↗
(wch chan int, results chan int)

Source from the content-addressed store, hash-verified

16}
17
18func worker(wch chan int, results chan int) {
19 for {
20 data := <-wch
21 data++
22 results <- data
23 }
24}
25
26func parse(results chan int) {
27 for {

Callers 1

poolFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected