mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -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;
|
||||
|
||||
/** Send a signal to process.
|
||||
*
|
||||
* ```ts
|
||||
* const p = Deno.run({ cmd: [ "sleep", "20" ]});
|
||||
* p.kill("SIGTERM");
|
||||
* p.close();
|
||||
* ```
|
||||
*/
|
||||
kill(signo: Signal): void;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue