Deno.Child
class Child<T extends SpawnOptions> { }
readonly pid: number;
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
§
T extends SpawnOptions
[src]§Properties
§
status: Promise<ChildStatus>
[src]Get the status of the child.
§Methods
§
output(): Promise<SpawnOutput<T>>
[src]Waits for the child to exit completely, returning all its output and status.