mirror of
https://github.com/denoland/deno.git
synced 2025-03-04 01:44:26 -05:00
docs(Deno.Process.kill): Added example for Deno.Process.kill() (#12464)
This commit is contained in:
parent
a2f5931510
commit
a2f53b105d
1 changed files with 6 additions and 0 deletions
6
cli/dts/lib.deno.ns.d.ts
vendored
6
cli/dts/lib.deno.ns.d.ts
vendored
|
@ -1967,6 +1967,12 @@ declare namespace Deno {
|
||||||
close(): void;
|
close(): void;
|
||||||
|
|
||||||
/** Send a signal to process.
|
/** Send a signal to process.
|
||||||
|
*
|
||||||
|
* ```ts
|
||||||
|
* const p = Deno.run({ cmd: [ "sleep", "20" ]});
|
||||||
|
* p.kill("SIGTERM");
|
||||||
|
* p.close();
|
||||||
|
* ```
|
||||||
*/
|
*/
|
||||||
kill(signo: Signal): void;
|
kill(signo: Signal): void;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue