MCPcopy Index your code
hub / github.com/goinaction/code / Worker

Interface Worker

chapter7/patterns/work/work.go:9–11  ·  view source on GitHub ↗

Worker must be implemented by types that want to use the work pool.

Source from the content-addressed store, hash-verified

7// Worker must be implemented by types that want to use
8// the work pool.
9type Worker interface {
10 Task()
11}
12
13// Pool provides a pool of goroutines that can execute any Worker
14// tasks that are submitted.

Callers 1

NewFunction · 0.65

Implementers 1

namePrinterchapter7/patterns/work/main/main.go

Calls

no outgoing calls

Tested by

no test coverage detected