Merge pull request #15461 from acierto/abort-task

Cancelling the running task (executing of a scaffolder template)
This commit is contained in:
Fredrik Adelöw
2023-03-15 14:25:03 +01:00
committed by GitHub
35 changed files with 1107 additions and 217 deletions
+1
View File
@@ -30,6 +30,7 @@ export type ActionContext<TActionInput extends JsonObject> = {
entity?: UserEntity;
ref?: string;
};
signal?: AbortSignal;
};
// @public
@@ -60,6 +60,11 @@ export type ActionContext<TActionInput extends JsonObject> = {
*/
ref?: string;
};
/**
* Implement the signal to make your custom step abortable https://developer.mozilla.org/en-US/docs/Web/API/AbortController/signal
*/
signal?: AbortSignal;
};
/** @public */