deno.com

class Deno.ChildProcess

implements AsyncDisposable

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

Properties #

#pid: number
readonly
#status: Promise<CommandStatus>
readonly

Get the status of the child.

#stderr: ReadableStream<Uint8Array<ArrayBuffer>>
readonly
#stdin: WritableStream<Uint8Array<ArrayBufferLike>>
readonly
#stdout: ReadableStream<Uint8Array<ArrayBuffer>>
readonly

Methods #

#[Symbol.asyncDispose](): Promise<void>
#kill(signo?: Signal): void

Kills the process with given Deno.Signal.

Defaults to SIGTERM if no signal is provided.

#output(): Promise<CommandOutput>

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

#ref(): void

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

#unref(): void

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