MCPcopy
hub / github.com/apache/devlake / Cancel

Method Cancel

backend/core/utils/ipc.go:85–92  ·  view source on GitHub ↗

Cancel cancels the stream by sending a termination signal to the target.

()

Source from the content-addressed store, hash-verified

83
84// Cancel cancels the stream by sending a termination signal to the target.
85func (p *ProcessStream) Cancel() errors.Error {
86 err := errors.Convert(p.process.Signal(syscall.SIGTERM))
87 if err != nil {
88 return err
89 }
90 p.cancelled = true
91 return nil
92}
93
94func (resp *ProcessResponse) GetStdout() []byte {
95 return resp.stdout

Callers 1

StreamMethod · 0.80

Calls 1

ConvertMethod · 0.45

Tested by

no test coverage detected