MCPcopy Create free account
hub / github.com/acking-you/static_flow / cancelTask

Function cancelTask

crates/frontend/gpt2api-app/src/api.ts:129–134  ·  view source on GitHub ↗
(key: string, taskId: string)

Source from the content-addressed store, hash-verified

127}
128
129export function cancelTask(key: string, taskId: string) {
130 return fetchJson<{ cancelled: boolean }>(`/tasks/${encodeURIComponent(taskId)}/cancel`, key, {
131 method: "POST",
132 body: "{}",
133 });
134}
135
136export function getTask(key: string, taskId: string, options: RequestOptions = {}) {
137 return fetchJson<TaskResponse>(`/tasks/${encodeURIComponent(taskId)}`, key, {

Callers 1

AppFunction · 0.90

Calls 1

fetchJsonFunction · 0.85

Tested by

no test coverage detected