func (dl *Download) Wait() (string, error) {
	// No select required here because each download will always
	// return a value once it completes. Downloads can be aborted via
	// the Abort channel provided a creation time.
	status := <-dl.Done()
	return status.Filename, errors.Trace(status.Err)
}
// Wait blocks until the download finishes (successfully or
// otherwise), or the download is aborted. There will only be a
// filename if err is nil.
Wait blocks until the download finishes (successfully or
otherwise), or the download is aborted. There will only be a
filename if err is nil.
// Wait blocks until the download finishes ( successfully or // otherwise ) or the download is aborted . There will only be a // filename if err is nil .
func (dl *Download) Wait() (string, error) {
	status := <-dl.Done()
	return status.Filename, errors.Trace(status.Err)
}
func ( dl * Download ) Wait ( ) ( string , error ) { status := <- dl . Done ( ) return status . Filename , errors . Trace ( status . Err ) }
Wait blocks until the download finishes (successfully or
otherwise), or the download is aborted.
Wait blocks until the download finishes ( successfully or otherwise ) or the download is aborted .
// No select required here because each download will always // return a value once it completes. Downloads can be aborted via // the Abort channel provided a creation time.