0
0
Fork 0
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:
Robert Schultz 2021-10-18 23:54:43 -04:00 committed by GitHub
parent a2f5931510
commit a2f53b105d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }