MCPcopy 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.
40func (p *Pool) Run(w Worker) {
41 p.work <- w
42}
43
44// Shutdown waits for all the goroutines to shutdown.
45func (p *Pool) Shutdown() {

Callers 2

mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected