mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
Improve isatty and kill API docs; Deno.kill() - throw on Windows (#4497)
This commit is contained in:
parent
a053462566
commit
8bcdb422e3
2 changed files with 27 additions and 7 deletions
|
@ -1,8 +1,12 @@
|
|||
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
||||
import { sendSync, sendAsync } from "./dispatch_json.ts";
|
||||
import { assert } from "../util.ts";
|
||||
import { build } from "../build.ts";
|
||||
|
||||
export function kill(pid: number, signo: number): void {
|
||||
if (build.os === "win") {
|
||||
throw new Error("Not yet implemented");
|
||||
}
|
||||
sendSync("op_kill", { pid, signo });
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue