Abort downloader on shutdown, don't wait for downloads to finish. #45 #114

This commit is contained in:
Andrey Smirnov
2014-10-03 01:31:38 +04:00
parent 43eb993160
commit 1042894123
4 changed files with 16 additions and 3 deletions
+2
View File
@@ -90,6 +90,8 @@ type Downloader interface {
// Shutdown stops downloader after current tasks are finished,
// but doesn't process rest of queue
Shutdown()
// Abort stops downloader without waiting for shutdown
Abort()
// GetProgress returns Progress object
GetProgress() Progress
}