Waits until the execution is completed and returns any error.
(ctx context.Context)
| 91 | |
| 92 | // Waits until the execution is completed and returns any error. |
| 93 | func (p *ProxyExec) Wait(ctx context.Context) error { |
| 94 | select { |
| 95 | case <-ctx.Done(): |
| 96 | return ctx.Err() |
| 97 | case <-p.done: |
| 98 | return p.err |
| 99 | } |
| 100 | } |
| 101 | |
| 102 | // Done returns true if the proxy has exited. |
| 103 | func (p *ProxyExec) Done() bool { |
no test coverage detected