code: func (e *Engine) VirtualizationWait(ctx context.Context, ID, state string) (*enginetypes.VirtualizationWaitResult, error) {
  	waitBody, errorCh := e.client.ContainerWait(ctx, ID, dockercontainer.WaitConditionNotRunning)
  	r := &enginetypes.VirtualizationWaitResult{}
  	select {
  	case b := <-waitBody:
  		if b.Error != nil {
  			r.Message = b.Error.Message
  		}
  		r.Code = b.StatusCode
  		return r, nil
  	case err := <-errorCh:
  		r.Message = err.Error()
  		r.Code = -1
  		return r, err
  	}
  }
docs: // VirtualizationWait wait virtualization exit