Wait waits for the process to exit, returning the error on the provided channel.
()
| 59 | // Wait waits for the process to exit, returning the error on the provided |
| 60 | // channel. |
| 61 | func (d *Process) Wait() <-chan error { |
| 62 | d.mu.Lock() |
| 63 | waitCh := d.waitCh |
| 64 | d.mu.Unlock() |
| 65 | |
| 66 | return waitCh |
| 67 | } |
| 68 | |
| 69 | // Run runs the command and waits for it to exit. It is a convenience |
| 70 | // function that combines both Start() and Wait(). |
no outgoing calls
no test coverage detected