// Wait gets exit code by containerID and execID
Wait gets exit code by containerID and execID
// Wait gets exit code by containerID and execID
func (c *Client) Wait(containerId, execId string, noHang bool) (int32, error) {
	ctx, cancel := getContextWithTimeout(hyperContextTimeout)
	defer cancel()
	req := types.WaitRequest{
		Container: containerId,
		ProcessId: execId,
		NoHang:    noHang,
	}
	resp, err := c.client.Wait(ctx, &req)
	if err != nil {
		return -1, err
	}
	return resp.ExitCode, nil
}
func ( c * Client ) Wait ( containerId , execId string , noHang bool ) ( int32 , error ) { ctx , cancel := getContextWithTimeout ( hyperContextTimeout ) defer cancel ( ) req := types . WaitRequest { Container : containerId , ProcessId : execId , NoHang : noHang , } resp , err := c . client . Wait ( ctx , & req ) if err != nil { return - 1 , err } return resp . ExitCode , nil }
Wait gets exit code by containerID and execID
Wait gets exit code by containerID and execID