MCPcopy Index your code
hub / github.com/abiosoft/ishell / stop

Method stop

ishell.go:136–144  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

134}
135
136func (s *Shell) stop() {
137 if !s.Active() {
138 return
139 }
140 s.activeMutex.Lock()
141 s.active = false
142 s.activeMutex.Unlock()
143 close(s.haltChan)
144}
145
146// Close stops the shell (if required) and closes the shell's input.
147// This should be called when done with reading inputs.

Callers 2

CloseMethod · 0.95
StopMethod · 0.80

Calls 1

ActiveMethod · 0.95

Tested by

no test coverage detected