summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schultz <robert@cosmicrealms.com>2021-10-18 23:54:43 -0400
committerGitHub <noreply@github.com>2021-10-19 05:54:43 +0200
commita2f53b105def7385e9b2ebae36cd0a2b8f0c89ff (patch)
treef7c04c781516b6a19628a2d7d4e561d1597ba776
parenta2f5931510d6778f9f9176d2e2ef7f61ea1adceb (diff)
docs(Deno.Process.kill): Added example for Deno.Process.kill() (#12464)
-rw-r--r--cli/dts/lib.deno.ns.d.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts
index 3fff1c61e..dfc597f07 100644
--- a/cli/dts/lib.deno.ns.d.ts
+++ b/cli/dts/lib.deno.ns.d.ts
@@ -1967,6 +1967,12 @@ declare namespace Deno {
close(): void;
/** Send a signal to process.
+ *
+ * ```ts
+ * const p = Deno.run({ cmd: [ "sleep", "20" ]});
+ * p.kill("SIGTERM");
+ * p.close();
+ * ```
*/
kill(signo: Signal): void;
}