MCPcopy Create free account
hub / github.com/goinaction/code / Task

Method Task

chapter7/patterns/work/main/main.go:28–31  ·  view source on GitHub ↗

Task implements the Worker interface.

()

Source from the content-addressed store, hash-verified

26
27// Task implements the Worker interface.
28func (m *namePrinter) Task() {
29 log.Println(m.name)
30 time.Sleep(time.Second)
31}
32
33// main is the entry point for all Go programs.
34func main() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected