Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/goinaction/code
/ Run
Method
Run
chapter7/patterns/work/work.go:40–42 ·
view source on GitHub ↗
Run submits work to the pool.
(w Worker)
Source
from the content-addressed store, hash-verified
38
39
// Run submits work to the pool.
40
func
(p *Pool) Run(w Worker) {
41
p.work <- w
42
}
43
44
// Shutdown waits for all the goroutines to shutdown.
45
func
(p *Pool) Shutdown() {
Callers
2
main
Function · 0.80
main
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected