MCPcopy Create free account
hub / github.com/SeeFlowerX/stackplz / run

Method run

user/module/imodule.go:144–155  ·  view source on GitHub ↗

Stop shuts down Module

()

Source from the content-addressed store, hash-verified

142
143// Stop shuts down Module
144func (this *Module) run() {
145 for {
146 select {
147 case _ = <-this.ctx.Done():
148 err := this.child.Stop()
149 if err != nil {
150 this.logger.Fatalf("%s\t stop Module error:%v.", this.child.Name(), err)
151 }
152 return
153 }
154 }
155}
156
157func (this *Module) readEvents() error {
158 var errChan = make(chan error, 8)

Callers 1

RunMethod · 0.95

Calls 2

StopMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected