MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / processInputQueue

Method processInputQueue

pkg/jobmanager/jobmanager.go:96–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96func (jm *JobManager) processInputQueue() {
97 for data := range jm.InputQueue.C() {
98 jm.lock.Lock()
99 cmd := jm.Cmd
100 jm.lock.Unlock()
101
102 if cmd == nil {
103 log.Printf("processInputQueue: skipping input, job not started\n")
104 continue
105 }
106
107 err := cmd.HandleInput(data)
108 if err != nil {
109 log.Printf("processInputQueue: error handling input: %v\n", err)
110 }
111 }
112}
113
114func (jm *JobManager) GetCmd() *JobCmd {
115 jm.lock.Lock()

Callers 1

SetupJobManagerFunction · 0.80

Calls 2

CMethod · 0.80
HandleInputMethod · 0.80

Tested by

no test coverage detected