Versions in this module Expand all Collapse all v4 v4.1.10 Jan 31, 2026 v4.1.9 Jan 1, 2026 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.8 Nov 25, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.7 Nov 10, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.6 Nov 3, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.5 Oct 19, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.4 Oct 1, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.3 Sep 16, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.2 Sep 4, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.1 Aug 18, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.1.0 Jul 31, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.0.9 Jul 24, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.0.8 Jul 4, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.0.7 Jul 2, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList v4.0.6 Jul 2, 2025 GO-2026-4396 +1 more GO-2026-4396: OpenList vulnerable to Path Traversal in file copy and remove handlers in github.com/OpenListTeam/OpenList GO-2026-4397: OpenList has Insecure TLS Default Configuration in github.com/OpenListTeam/OpenList Changes in this version + var CANCELED = "canceled" + var CANCELING = "canceling" + var ERRORED = "errored" + var ErrTaskNotFound = errors.New("task not found") + var ErrTaskRunning = errors.New("task is running") + var PENDING = "pending" + var RUNNING = "running" + var SUCCEEDED = "succeeded" + type Callback func(task *Task[K]) + type Func func(task *Task[K]) error + type Manager struct + func NewTaskManager[K comparable](maxWorker int, updateID ...func(*K)) *Manager[K] + func (tm *Manager[K]) Cancel(tid K) error + func (tm *Manager[K]) ClearDone() + func (tm *Manager[K]) ClearSucceeded() + func (tm *Manager[K]) Get(tid K) (*Task[K], bool) + func (tm *Manager[K]) GetAll() []*Task[K] + func (tm *Manager[K]) GetByStates(states ...string) []*Task[K] + func (tm *Manager[K]) ListDone() []*Task[K] + func (tm *Manager[K]) ListUndone() []*Task[K] + func (tm *Manager[K]) MustGet(tid K) *Task[K] + func (tm *Manager[K]) RawTasks() *generic_sync.MapOf[K, *Task[K]] + func (tm *Manager[K]) Remove(tid K) error + func (tm *Manager[K]) RemoveAll() + func (tm *Manager[K]) RemoveByStates(states ...string) + func (tm *Manager[K]) Retry(tid K) error + func (tm *Manager[K]) Submit(task *Task[K]) K + type Task struct + Ctx context.Context + Error error + Func Func[K] + ID K + Name string + func WithCancelCtx[K comparable](task *Task[K]) *Task[K] + func (t *Task[K]) Cancel() + func (t *Task[K]) Done() bool + func (t *Task[K]) SetProgress(percentage float64) + func (t *Task[K]) SetStatus(status string) + func (t Task[K]) GetErrMsg() string + func (t Task[K]) GetProgress() float64 + func (t Task[K]) GetState() string + func (t Task[K]) GetStatus() string