You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: delete_image_pipeline.go
    path of file: ./repos/sealer/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs
    
    the code of the file until where you have to start completion: package ecs

//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy
    
func (client *Client) DeleteImagePipelineWithCallback(request *DeleteImagePipelineRequest, callback func(response *DeleteImagePipelineResponse, err error)) <-chan int {
	result := make(chan int, 1)
	err := client.AddAsyncTask(func() {
		var response *DeleteImagePipelineResponse
		var err error
		defer close(result)
		response, err = client.DeleteImagePipeline(request)
		callback(response, err)
		result <- 1
	})
	if err != nil {
		defer close(result)
		callback(nil, err)
		result <- 0
	}
	return result
}