Deno.Child

class Child<T extends SpawnOptions> {
readonly pid: number;
readonly status: Promise<ChildStatus>;
readonly stderr: T["stderr"] extends "inherit" | "null" ? null : ReadableStream<Uint8Array>;
readonly stdin: T["stdin"] extends "piped" ? WritableStream<Uint8Array> : null;
readonly stdout: T["stdout"] extends "inherit" | "null" ? null : ReadableStream<Uint8Array>;
 
kill(signo: Signal): void;
output(): Promise<SpawnOutput<T>>;
}

§Type Parameters

§Properties

§
pid: number
[src]
§
status: Promise<ChildStatus>
[src]

Get the status of the child.

§
stderr: T["stderr"] extends "inherit" | "null" ? null : ReadableStream<Uint8Array>
[src]
§
stdin: T["stdin"] extends "piped" ? WritableStream<Uint8Array> : null
[src]
§
stdout: T["stdout"] extends "inherit" | "null" ? null : ReadableStream<Uint8Array>
[src]

§Methods

§
kill(signo: Signal): void
[src]

Kills the process with given Signal.

§
output(): Promise<SpawnOutput<T>>
[src]

Waits for the child to exit completely, returning all its output and status.