MCPcopy Index your code
hub / github.com/coder/agentapi / Wait

Method Wait

lib/termexec/termexec.go:183–192  ·  view source on GitHub ↗

Wait waits for the process to exit.

()

Source from the content-addressed store, hash-verified

181
182// Wait waits for the process to exit.
183func (p *Process) Wait() error {
184 state, err := p.execCmd.Process.Wait()
185 if err != nil {
186 return xerrors.Errorf("process exited with error: %w", err)
187 }
188 if state.ExitCode() != 0 {
189 return ErrNonZeroExitCode
190 }
191 return nil
192}

Callers 5

runServerFunction · 0.95
CloseMethod · 0.80
WaitForStatusMethod · 0.80
waitForNMethod · 0.80
setupFunction · 0.80

Calls

no outgoing calls

Tested by 3

WaitForStatusMethod · 0.64
waitForNMethod · 0.64
setupFunction · 0.64