From b67f874b3fb172168997be410b1d5e3c3109c763 Mon Sep 17 00:00:00 2001 From: Leo Kettmeir Date: Wed, 11 May 2022 07:59:39 +0200 Subject: feat(runtime/spawn): add `AbortSignal` support (#14538) --- cli/dts/lib.deno.unstable.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cli/dts') diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index fbbe165f9..ca437bf44 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -1346,6 +1346,12 @@ declare namespace Deno { uid?: number; /** Similar to `uid`, but sets the group ID of the child process. */ gid?: number; + /** + * An AbortSignal that allows closing the process using the corresponding + * AbortController by sending the process a SIGTERM signal. + * Not Supported by execSync. + */ + signal?: AbortSignal; /** Defaults to "null". */ stdin?: "piped" | "inherit" | "null"; -- cgit v1.2.3