MCPcopy Index your code
hub / github.com/kopia/kopia / handleTaskCancel

Function handleTaskCancel

internal/server/api_tasks.go:44–48  ·  view source on GitHub ↗
(_ context.Context, rc requestContext)

Source from the content-addressed store, hash-verified

42}
43
44func handleTaskCancel(_ context.Context, rc requestContext) (any, *apiError) {
45 rc.srv.taskManager().CancelTask(rc.muxVar("taskID"))
46
47 return &serverapi.Empty{}, nil
48}

Callers

nothing calls this directly

Calls 3

CancelTaskMethod · 0.80
muxVarMethod · 0.80
taskManagerMethod · 0.65

Tested by

no test coverage detected