Deno.ChildProcess

The interface for handling a child process returned from Deno.Command.spawn.

class ChildProcess implements AsyncDisposable {
readonly pid: number;
readonly status: Promise<CommandStatus>;
get stdin(): WritableStream<Uint8Array>;
get stdout(): ReadableStream<Uint8Array>;
get stderr(): ReadableStream<Uint8Array>;
 
kill(signo?: Signal): void;
output(): Promise<CommandOutput>;
ref(): void;
unref(): void;
[Symbol.asyncDispose](): Promise<void>;
}

§Implements

§
AsyncDisposable
[src]

§Properties

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

Get the status of the child.

§
stdin: WritableStream<Uint8Array> readonly
[src]
§
stdout: ReadableStream<Uint8Array> readonly
[src]
§
stderr: ReadableStream<Uint8Array> readonly
[src]

§Methods

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

Kills the process with given Deno.Signal.

Defaults to SIGTERM if no signal is provided.

@param signo
§
output(): Promise<CommandOutput>
[src]

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

§
ref(): void
[src]

Ensure that the status of the child process prevents the Deno process from exiting.

§
unref(): void
[src]

Ensure that the status of the child process does not block the Deno process from exiting.

§
[Symbol.asyncDispose](): Promise<void>
[src]