Function: cancelRun()
cancelRun(
ctx,runId):Promise<RunView>
Defined in: sdk/ts/sdk/src/host/runs.ts:178
Folds a cancel marker and returns the run. Cancelling an ended run is a no-op that still returns the view.
Parameters
ctx
runId
string
Returns
Promise<RunView>
Throws
RunNotFound when no run has that id.