MCPcopy Create free account
hub / github.com/krau/SaveAny-Bot / AddTask

Function AddTask

core/core.go:77–79  ·  view source on GitHub ↗
(ctx context.Context, task Executable)

Source from the content-addressed store, hash-verified

75}
76
77func AddTask(ctx context.Context, task Executable) error {
78 return queueInstance.Add(queue.NewTask(ctx, task.TaskID(), task.Title(), task))
79}
80
81func CancelTask(ctx context.Context, id string) error {
82 err := queueInstance.CancelTask(id)

Calls 4

NewTaskFunction · 0.92
AddMethod · 0.80
TaskIDMethod · 0.65
TitleMethod · 0.65

Tested by

no test coverage detected