refactor(task): generic task manager

This commit is contained in:
Noah Hsu
2022-06-21 16:14:37 +08:00
parent 1b3387ca1a
commit 55d6434daa
6 changed files with 135 additions and 106 deletions

View File

@ -6,7 +6,8 @@ import (
)
const (
Downloading = iota
Ready = iota
Downloading
Paused
Stopped
Completed