MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / Cancel

Method Cancel

internal/task/manager.go:9–9  ·  view source on GitHub ↗
(id string)

Source from the content-addressed store, hash-verified

7type Manager[T tache.Task] interface {
8 Add(task T)
9 Cancel(id string)
10 CancelAll()
11 CancelByCondition(condition func(task T) bool)
12 GetAll() []T

Callers 5

TestTask_CancelFunction · 0.65
CancelMethod · 0.65
CancelMethod · 0.65
taskRouteFunction · 0.65
CloseMethod · 0.65

Calls

no outgoing calls

Tested by 1

TestTask_CancelFunction · 0.52