You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here is my code snippet:
dst := esxLogsFolder + "/" + path.Base(u.Path)
p := soap.DefaultDownload
logger := newvVenterTaskProgressLogger(fmt.Sprintf("Downloading %s... ", dst))
defer logger.Wait()
p.Progress = logger
Sometimes DownloadFile takes too long and I want to cancel/abort; but don't know how to do it.
Can I use a context with deadline to achieve this?
Thanks
Jasmeer
Beta Was this translation helpful? Give feedback.
All reactions