MCPcopy Create free account
hub / github.com/ecto/muni / cancel_task

Function cancel_task

depot/dispatch/src/main.rs:1315–1320  ·  view source on GitHub ↗
(
    State(state): State<SharedState>,
    Path(id): Path<Uuid>,
)

Source from the content-addressed store, hash-verified

1313}
1314
1315async fn cancel_task(
1316 State(state): State<SharedState>,
1317 Path(id): Path<Uuid>,
1318) -> Result<impl IntoResponse, (StatusCode, String)> {
1319 cancel_task_internal(&state, id).await
1320}
1321
1322async fn cancel_task_internal(
1323 state: &AppState,

Callers

nothing calls this directly

Calls 1

cancel_task_internalFunction · 0.85

Tested by

no test coverage detected