Deno.ChildProcess
The interface for handling a child process returned from
Deno.Command.spawn
.
class ChildProcess implements AsyncDisposable { }
readonly pid: number;
output(): Promise<CommandOutput>;
ref(): void;
unref(): void;
[Symbol.asyncDispose](): Promise<void>;
§Properties
§
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
§
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.